I had asked in the php forum how I could drop a php include directive into an existing HTML page. One of the participants suggested:
"...if you can use .htaccess include a mod-rewrite rule to redirect the "old" .html page to the "new" .php version."
The writer wasn't exactly sure what the correct mod-rewrite format would be for .htaccess, but suggested this:
Code:
RewriteEngine On
RewriteRule myPage.html myPage.php
If that's not right, could someone please suggest how this should be handled? (If possible, could you show an example of mod-rewrite for one file only -- myPage.html; and also, what is the format for mutiple files: myPage1.html ; myPage2.html ; myPage3.html etc).
Thanks for any advice...
----------------------------------------