Static pages made with rewrite actually do not exist, iis(Microsoft's WEB server platform)ewrite is unstable and often gets 404, so this article was written.
Principle: 404 page type uses php(as the current mainstream development language)(Asp can also be used), combined with thief, to achieve page staticization
(Microsoft's WEB server platform)" src="/edu/UploadPic/2008-2/2008215181544452.jpg" border="0" />
(Microsoft's WEB server platform) " src="/edu/UploadPic/2008-2/2008215181545695.jpg" border="0" />
Use discuz! forum archiver for 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 code:
(As the current mainstream development language)
$url = $_SERVER[QUERY_STRING ];
$url = str_replace("404;","",$url);
if (!ereg (archiver, $url))
echo "404 error";
// 404 error page display content
else { $count = count($str);
for ($i=0;$i<$count;$i++){
$file .= $str[$i];
}
echo $file;
//Implement archiver/?xx.html into archiver/xx.html
}
?>