hello i hav a bit of an assignment. got to convert html extensions to php dynamically like i have a file http://mydomain/hello.php if anybody tries to acess it as http://mydomain/hello.html he should be redirected to the hello.php ....hope u get me i know it can be done using the .htaccess file but havent got it yet to add we use the rewriterule
help me plz greg😕
here's a rewrite rule that will work for you.
RewriteEngine On RewriteRule ^(.*)\.html?$ $1\.php [NC]
would work for http://yoursite.com/page.html or page.htm
Thanx for the sugession.
Originally posted by drew010 here's a rewrite rule that will work for you. RewriteEngine On RewriteRule ^(.*)\.html?$ $1\.php [NC] would work for http://yoursite.com/page.html or page.htm [/B]
Originally posted by drew010 here's a rewrite rule that will work for you.
would work for http://yoursite.com/page.html or page.htm [/B]