How to make the URL shorter using Javascript/JQuery? -


i trying make url shorter access html pages different folders.

my folder structure is:

    project      -output      -files         -css         -js         -html

when trying access files html folder, need write complete url in browser.
eg. http:// coder:8055/files/html/login.html

but, want use url: http:// coder:8055/login.html
same folder structure. same problem showing other html files access folder structure.

want keep same folder structure , show shorter url in browser.
how create type of url access html files...?

this worked

history.pushstate('', '', '/login.html'); 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

qt - How to embed QML toolbar and menubar into QMainWindow -