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?