Forum Moderators: phranque
RewriteEngine on
RewriteRule (.+)\.original_extension$ $1.any_other_extension for example to rewrite every file with the html extension to php, use
RewriteRule (.+)\.html$ $1.php i suggest you to read about the mod_rewrite in the apache documentation anyway, this is a very easy rewriting, if you would have taken a look in it, you could have done the same rewriting by yourself
RewriteEngine on
RewriteRule (.*)/somefile.html $1/somefile.php [L]
[L] to [R,L] at the end of the last line.
If someone posts their own code and asks for help with a specific problem, we'll help fix it.
"Give a man a fish, and feed him for a day. Teach a man to fish, and feed him for a lifetime."
Apache mod_rewrite documentation [httpd.apache.org]
Apache URL Rewriting Guide [httpd.apache.org]
Regular expressions tutorial [etext.lib.virginia.edu]
Jim