Experts solve problems related to two url formats

Source: Internet
Author: User
Experts solve two url format problems recently are modifying two other people's open-source programs, both of which are single-page portals, but they do not know the url too well :( 1) www. xxxx. comindex. phpnews1 (2) www.xxxx.com? P1 is a url that has no rewrite operations. it is depressing how such a url is implemented. The first one is to pass the parameter in the form of a folder and how to receive it in the background. The second expert solves two url format problems
Recently, I was modifying two open-source programs of others, both of which are single-page portals, but I don't know much about their URLs:
(1) http://www.xxxx.com/index.php/news/1
(2) http://www.xxxx.com /? P = 1
These are all URLs that have not been rewritten. now I am very depressed about how this url is implemented. The first one is to pass the parameter in the form of a folder and how to receive it in the background. The second one directly omitting index. php. can this be done? I don't know if you have any experts to enlighten me.

Url open source php

Share:


------ Solution --------------------
The framework is such a URL. check whether a framework is used.
------ Solution --------------------
Http://www.xxxx.com /? P = 1
Is a standard url format
When the file name is omitted, the default website file is located.

The default file name is index. php.
So http://www.xxxx.com /? P = 1
Is it actually http://www.xxxx.com/index.php? P = 1

Shape as http://www.xxxx.com/index.php/news/1
You need to enable the PATH_INFO function on the web server.

------ Solution --------------------
What can I GET from $ _ GET?

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.