Static pages made with rewrite do not actually exist. iis (Microsoft's WEB server platform) ewrite is unstable and often 404, so this article is available.
Principle: 404 The page type uses php (as the current mainstream development language) (Asp can also), combined with thieves, to achieve Static Page
Use discuz! Example of Forum archiver:
404 program page: http://bbs.pkxp.com/error.php (as the mainstream development language)
Demo: http://bbs.pkxp.com/archiver/
Error. php (as the mainstream development language) source code:
<? Php (as the mainstream development language)
$ Url = $ _ SERVER [QUERY_STRING];
$ Url = str_replace ("404;", "", $ url );
If (! Ereg (archiver, $ url ))
Echo "Error 404 ";
// Display content on the 404 error page
Else {
$ Url = str_replace ("archiver/", "archiver /? ", $ Url );
$ Str = file ("$ url ");
$ Count = count ($ str );
For ($ I = 0; $ I <$ count; $ I ++ ){
$ File. = $ str [$ I];
}
Echo $ file;
// Implement archiver /? Change xx.html to archiver/xx.html
}
?>