I've tried fiddling with it but to no avail. I dont want to change the name of the files etc just the extension. Files like faqs.php and contact.php I just want them as faqs.html,contact.html etc. No matter how I try I cant get it to work I bet it's easy
I wasn't going to say anything, but....it can't get any easior that this!! Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^([^.]+)\.html$ $1.php [L]
Another way: find string AddType application/x-httpd-php .php ..... add ".html" AddType application/x-httpd-php .php .phtml .html
Thanks guys.I'll get my head around it one day.It doesn't seem to get any easier learning things as you get older.
er, are you trying to change the links??!! mod_rewrite doesn't do that!!! Add my code to .htaccess, then go to domain.com/contact.html and that URL should work...unless you're on a Windows server!!! Though if you were on that, I think you would be using .asp instead of .php. The script has to be edited to change the links.
Sorry Nintendo.I should have said........works a treat.I've just got up and not had my morning walkies yet Thankyou again.