htaccess urlrewriting problem
Posted: Sun Jun 06, 2010 2:58 pm
hi all,
i have a html file i have upgraded to php for use with more functions, but i have php include connecting to the file in around 30-40 files. with this i have written in my .htaccess file the following 3 linesbut it still only includes the old html file rather than the new file. is there anything i have done wrong here or another piece of code i could use once? or will i just have to manually edit all my include calls to .php rather than .html?
thanks
i have a html file i have upgraded to php for use with more functions, but i have php include connecting to the file in around 30-40 files. with this i have written in my .htaccess file the following 3 lines
Code: Select all
RewriteEngine On
RewriteRule ^include/oldfile\.html$ /include/newfile.php
RewriteRule ^include/oldfile\.html/$ /include/newfile.phpthanks