Urgent: How to RedirectMatch 301 all files on server to new file extension
Posted on 2006-07-10
HI All -
All the files on out webserver were recently changed from .html to .php due to various platform and programming reasons. The directory structure and filenames were all preserved however, so I would like to be able to set a site wide permanent redirect so that any request made to a .html page (in any directory) will be redirected to that same page, with a .php extension instead.
Is it possible to do this by setting the instruction in the httpd.conf file? If so, what would the complete rule be? I know I can do this via .htaccess files in each directory, but I'd rather not have to do that, as there are *many* dirs and subdirs on the server.
The site is hosted on a VPS and mod_rewrite is installed.
Thanks in advance for any assistance!