I recently converted several sections of my site from html to php, and I wanted an easy way to change over without uploading a redirect page in the place of each html page. So I came up with this option.
Required:
Your server must allow you to use php pages for error messages.
If that’s not the default, you’ll need access to the htaccess file to make the change.
You will need to delete the .html files from the folders you are uploading .php files in their place.
For example, I have a folder at http://love-productions.com/about/. It previously had index.html, lp.html, k.html. Now it has index.php, lp.php, and k.php and I’ve deleted the html pages. So if you visit /about/index.html, it will redirect you to /about/index.php.
(more…)