CUSTOM 404 - HTM TO PHP SCRIPT This custom .404 script performs some valuable, practical functions: 1). For Web developers who are transitioning large, static HTML sites to much
more powerful PHP versions it allows you to replace pages gradually and TRANSPARENTLY without sacrificing your internal or external link integrity. All links to your pages can
remain the same (i.e. .htm, .html, etc) even AFTER you replace them with same-name .php versions. What this does is prevent you from losing any position in the search engines
and also keeps all your internal and incoming links from other sites operating and active. 2). You don't have to use the (Apache) Mod_Rewrite module, Force_Type directives or
even have access to your .conf file in order to use it. This is especially useful for those running several virtual domains on the same server and need separate rules for each.
3). When your new PHP pages are in place, you can still submit them for re-indexing with the search engines and directories using the (more friendly and common) .htm extensions.
4). By leaving this .404 script in place, you can simply add different header locations or file includes ($page.php) to it later that redirect to, say, your database scripts or
other PHP pages that perform different functions. In this way you can create literally thousands of (what appear to be) normal, static .html pages which (actually) do not exist,
but are php-created on the fly.