I have the following rules which adds .html to all requests so that if a user navigates to www.mysite.com/support
, they see my www.mysite.com/support.html
page:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
How can I change this so that for specific urls, it adds .php instead of .html:
- /support => should go to www.mysite.com/support.php
- /contact => should go to www.mysite.com/contact.php
- /everything else => should go to www.mysite.com/...html
Thanks.