PHP corrects HTTP header-modify http Headers

Source: Internet
Author: User
PHP modifies HTTP header--modify http Headers
Modify HTTP Headers

See RELATED links for more status codes//Use this header instruction to fix 404 headers//produced by URL rewriting: . Header (' http/1.1 OK '); Page was wasn't Found:header (' http/1.1 404 Not Found '); Access Forbidden:header (' http/1.1 403 Forbidden '); The page moved permanently should is used for//all redrictions, because search engines know//what ' s going on and can Easily update their urls.header (' http/1.1 301 Moved permanently '); Server Errorheader (' http/1.1 Internal server Error '); Redirect to a new Location:header (' location:http://www.example.org/'); Redriect with a delay:header (' refresh:10; url=http://www.example.org/');p rint ' You'll be redirected in ' seconds '; You can also use the HTML syntax://
 
  < pre="">
 
  • Related Article

    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.