Experts solve two url format problems: url open source php
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.
Reply to discussion (solution)
The framework is such a URL. check whether a framework is used.
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.
Forgot to mention, the first is the program written by the Igniter framework, and the second is the default wordpress url.
Forgot to mention, the first is the program written by the Igniter framework, and the second is the default wordpress url.
Know the framework name and view the routing rules in the development documentation,
What can I GET from $ _ GET?
This thinkphp framework can be fully implemented.