Home > Backend Development > PHP Tutorial > 高手解决两个url格式有关问题

高手解决两个url格式有关问题

WBOY
Release: 2016-06-13 12:35:44
Original
1058 people have browsed it

高手解决两个url格式问题
最近在修改别人的两个开源程序,这两个都是单页面入口的,但是他们url我不是太懂:
(1)http://www.xxxx.com/index.php/news/1
(2)http://www.xxxx.com/?p=1
这都是没有rewrite过的url,现在很郁闷这种url是怎么实现的,第一个通过文件夹形式传参,后台改怎么接收。第二个直接省略index.php,这样可以嘛?不知道有没有高手赐教。

url 开源 php
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template