Javascript-js or PHP has no function to determine a URL, if the 404-hop A address if it is not 404 direct request URL Line

Source: Internet
Author: User
JS or PHP has no function to determine a URL, if the request is 404, jump a address if it is not 404 direct request URL Line

The URL I requested is the Android client Schema:myapp this form .....

This is the URL geo:39.901149,116.41851?z=14
This means that if the client has GoogleMap installed then open the GoogleMaps app and request it directly if it is not installed geo:39.901149,116.41851?z=14

Reply content:

JS or PHP has no function to determine a URL, if the request is 404, jump a address if it is not 404 direct request URL Line

The URL I requested is the Android client Schema:myapp this form .....

This is the URL geo:39.901149,116.41851?z=14
This means that if the client has GoogleMap installed then open the GoogleMaps app and request it directly if it is not installed geo:39.901149,116.41851?z=14

If you want to deal with the problem of your own site, directly on the page to jump on the line, you think so many sites unified 404 pages where the ....

If you are referring to the URL to crawl other sites, then do it, get the HTTP return status code to determine whether it is 404.

  • 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.