Static pages made with rewrite actually do not exist, IIS (Microsoft Web server platform) Ewrite and unstable often 404, so there is this article.
Principle: 404 page type with PHP (as the current mainstream development language) (ASP also can), combined with thieves, to achieve page static
Use discuz! Forum archiver Example:
404 Program page: http://bbs.pkxp.com/error.php (as the current mainstream development language)
Demo: http://bbs.pkxp.com/archiver/
Error.php (as the current mainstream development language) Source:
$url = $_server[query_string];
$url = Str_replace ("404;", "", $url);
if (!ereg (Archiver, $url))
echo "404 Error";
404 error page display content
else {
$url = Str_replace ("archiver/", "archiver/", $url);
$str = File ("$url");
$count = count ($STR);
for ($i =0; $i < $count; $i + +) {
$file. = $str [$i];
}
Echo $file;
Achieve archiver/?xx.html into archiver/xx.html
}
?>
http://www.bkjia.com/PHPjc/508753.html www.bkjia.com true http://www.bkjia.com/PHPjc/508753.html techarticle static pages made with rewrite actually do not exist, IIS (Microsoft Web server platform) Ewrite and unstable often 404, so there is this article. Principle: 404 page type with PHP (as now ...