Rewriting URLs
Hello, is there anything to do in WHM to ensure that the sites I host on my cPanel do not include file extensions in the URLs?
Currently, to access a page on a site hosted on my cPanel, here is an example: www.site.com/pricing.html
I would like the default URLs for all sites to automatically exclude the file extension, resulting in: www.site.com/pricing
How can I achieve this without creating a .htaccess file each time?
-
Hey there! There is no automated way to do this for all files on the system. You would need to use some .htaccess tricks to get around this, but there are more global options than doing it for each individual file. For example, for all .htm or html files, you could use the details in this post: https://forums.cpanel.net/threads/remove-file-extensions-on-webpages.658945/ 0
Please sign in to leave a comment.
Comments
1 comment