Long url's in single word?

How to handle the lengthy URL’s because it is good if it comes in a single word.


instead of sitepoint.com/files/pages/community.html

Can you explain what you mean by “how to handle”? I’m not sure what this has to do with JavaScript either.

I think you want URL rewrite?

Can be done with .htaccess and first result from a Google search: https://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/

The file extension can be removed with .htaccess as well.


Thanks for the link

Mind that url rewriting happens on the request (between the server and whatever subsequent application is called by that), not on the response.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.