IIS method to achieve static page without rewrite_PHP tutorial

WBOY
Release: 2016-07-13 17:31:56
Original
1018 people have browsed it

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

IIS method to achieve static page without rewrite_PHP tutorial (Microsoft's WEB server platform)" src="/edu/UploadPic/2008-2/2008215181544452.jpg" border="0" />

IIS method to achieve static page without rewrite_PHP tutorial(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
}
?>


http://www.bkjia.com/PHPjc/508753.html

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/508753.htmlTechArticleThe static page made with rewrite does not actually exist, iis (Microsoft's WEB server platform) ewrite is unstable and often 404 , hence this article. Principle: 404 page type uses php (as the current...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!