Forum Moderators: phranque
The problem is that all of the URLs for the site will change. What used to be /content.html would become /content.php
Since my site relies on direct links for many of its visitors, then I'm at risk of losing a lot of visitors if I don't pull this through correctly. What's the best way to seamlessly redirect users to the new URLs?
It'll probably have to be on a per-URL basis. Some URLs, such as /content/content.html will become /content/index.php, so a single rewrite probably won't work.
There's no need to switch extensions for your pages. Just parse your HTML as PHP [google.com].
I tried everything at [webmasterworld.com...] but the most I got was an Internal Server Error. Looks like HTML as PHP won't be an option.
[edited by: trillianjedi at 11:10 am (utc) on Jan. 1, 2007]
[edit reason] Fixing URL [/edit]
RewriteRule ^(.*)\.html$ $1.php
Thus the URL "test.html" will cause the file "test.php" to be executed. You should also make sure all the links between pages use the .html version of each URL so visitors never see the 'wrong' variant.