Php control iis 404 error page

Source: Internet
Author: User

Php controls the iis 404 error page. This document describes how to use php to manage web site time when setting pages that cannot be found by 404.

Php controls the iis 404 error page. This document describes how to use php to manage web site time when setting pages that cannot be found by 404.

<?
# PHP site control program
#
# Prepared by Han Xiangzi
#
# Mailbox: hanxiangzi@gmail.com
#
# MSN: hanxiangzi@gmail.com
#
# QQ: 220670
#
# Contact us for discussion
?>
<Link href = "image/css.css" rel = "stylesheet" type = "text/css"/>
<Style type = "text/css">
<! --
Body {
Background-color: # D4D0C8;
}
-->
</Style>
<? Php

$ Site = New Com ("IIS: // Localhost/w3svc/". $ ServerID );

IF ($ Submit ){
$ Site-> HttpErrors = "404, *, Url,". $ httperr;
$ Site-> SetInfo ();
}

?>
<Table width = "100%" border = "0" cellspacing = "0" cellpadding = "3">
<Tr>
<Td> <a href = "3.php"> <strong> back to host list </strong> </a> </td>
</Tr>
</Table>
<Table width = "100%" border = "0" cellspacing = "0" cellpadding = "3">
<Tr>
<Td> <a href = "33.php? ServerID = <? Php echo $ ServerID;?> "> Back to host management </a> </td>
</Tr>
<Tr>
<Td> & nbsp; </td>
</Tr>
</Table>
<Form action = "? ServerID = <? Php echo $ ServerID;?> "Method =" POST ">
Set Error 404 <input type = input value = "" size = 80 name = "httperr"> <input type = "Submit" name = "Submit" value = "Submit">
<Br> Format:/path/file .htm, for example:/404.htm
</Form>


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.