Well there's something I can't get past in htaccess.
Im trying to make the default page a page that doesnt really exist... The default page is index.php which exists, but I want the default page set to index.html so that it is SEO friendly, but if I set the default page is index.html I get a 404 error even after adding a Rewrite Rule to redirect all .html's to .php's
Anyone have any suggestions?
This is what I have:
Code:
RewriteEngine On
RewriteRule ^(.*).html $1.php
DirectoryIndex index.html
Thanks everyone! Any help or suggestions are much appreciated.
Yes the page doesnt exist, index.php exists, but not index.html.
But I am trying to make it SEO friendly, so im rewriting all links as .html, thats all done fine, only the default page is index.php, which is not as seo friendly as index.html. So if i set th default page as index.html it has an error as the file desont exist.
But when a search engine will find my website, it will go to http://www.domain.com/ which will use the default page http://www.domain.com/index.PHP instead of the rewritten http://www.domain.com/index.HTML. Im trying to get it to use the .html as its more seo friendly (having .html instead of .php). I've tried setting the default page to the index.html, but htaccess knows its not really there and has a 404 error.
DAN you are a legend, just did what you said to (create an index.html) and it works brilliantly
NP$ sent to you + rep.
Thanks everyone else also for helping, rep left to all the people who helped that I could actually leave rep to (I couldnt with some as I had already recently).