Hi,
I want to be able to remove .htm and .ssi extentions from the urls of my site and replace them with either, nothing or a /
Is this possible?
Thank You. For any advice you've got!
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/$1.html -f
RewriteRule ^(.*[^/])/?$ /$1.html [QSA,L]
RewriteCond %{DOCUMENT_ROOT}/$1.ssi -f
RewriteRule ^(.*[^/])/?$ /$1.ssi [QSA,L]
I presume i change .html for .htm? Because my page extentions are actually .htm not .htm
Where do i put this? Does it have to go in the root of that domain or can i put it where ever i want that to be in effect?
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(/.*[^/])/?$
RewriteCond %{DOCUMENT_ROOT}%1.htm -f
RewriteRule ^.*[^/]/?$ %1.htm [QSA,L]
RewriteCond %{REQUEST_URI} ^(/.*[^/])/?$
RewriteCond %{DOCUMENT_ROOT}%1.ssi -f
RewriteRule ^.*[^/]/?$ %1.ssi [QSA,L]
There was no change to the urls...
Return to Friendly URLs with Mod_Rewrite
Users browsing this forum: No registered users and 26 guests