I don't want to loose my SEO and back links by changing all my page extensions from .html to .PHP. I have this in my .htaccess Options +FollowSymLinks RewriteEngine On RewriteRule ^([^.]+).html$ /$1.php [QSA,L] Code (markup): Is this right? Almost all of my page extensions are in .html. I have a few that are saved with .htm. I also have some pages saved with .PHP. The only code I have in my .htaccess file is the code posted here, it doesn't work. I don't know anything about .htaccess files. Can you please let me know what I have to do? Thank You
What this code here does is that if you go to yoursite.com/page.html , it shows that it;s on page.html, but actually tries to go to page.php (which isn't there) what you can do is: wait for someone to post a different code or rename all your Html pages to .php (they'll still show up as .html, and are accesable by the html))
This code may cause errors. I have done this before on my server. And found errors. I cant remember what it was exactly, because I tried this before a year. I think .httaccess may be fine
Sorry...so are you saying to rename the file from .htaccess to .httaccess? Because I'm having the same problem to.
.htaccess is correct The problem most likely relates to the name of the hosts php handler. I imagine you'd be looking for AddType application/x-httpd-php4 .html Code (markup): Or for PHP5 AddType application/x-httpd-php5 .html Code (markup):
Thanks everyone for you’re help but I tried everything and I can’t get any of this to work. Do you think it could be because I have my hosting with windows and not Linux?