Hey guys,
I'm trying to accomplish three very common things:
1) Removing the .html extension from the pages of my site which I've done via this code:
2) Remove the index.html extension on my homepage. I'm not sure how this can be done - is this done via HTACCESS or via how I link back to the homepage from the subpages of the site?Code:RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^([^/]+)/$ $1.html RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$ RewriteRule (.*)$ /$1/ [R=301,L]
3) Setting up a 301 redirect which adds www. to the start of the domain name, however the code I use conflicts with the code in point 1.
Any help would be greatly appreciated!
Thanks



Reply With Quote
Bookmarks