Does javascript-js or php have A function to determine A url? If the address of 404 hops is not 404, directly request the url.

Source: Internet
Author: User
Js or php does not have A function to determine A url. If the request is 404, skip the address and directly request the url if it is not 404. The requested url is the android client schema: myapp ..... This is urlgeo: 39.901149, 116.41851? Z14 indicates whether there is A function in .. js or php to judge A url. If the request is 404, skip A url if it is not 404 and directly request the url.

The requested url is in the form of schema: myapp on the android client .....

This is url geo: 39.901149, 116.41851? Z = 14
This means that if googlemap is installed on the client, the googlemaps application will be opened. If the application is not installed, the request for geo: 39.901149, 116.41851 will be sent directly? Z = 14

Reply content:

Js or php does not have A function to determine A url. If the request is 404, skip the address and directly request the url if it is not 404.

The requested url is in the form of schema: myapp on the android client .....

This is url geo: 39.901149, 116.41851? Z = 14
This means that if googlemap is installed on the client, the googlemaps application will be opened. If the application is not installed, the request for geo: 39.901149, 116.41851 will be sent directly? Z = 14

If you want to solve your website problems, you can directly jump to the page, where do you think so many websites have a uniform 404 page ....

If you want to capture the URLs of other websites, you can also obtain the http return status code and determine whether it is 404.

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.