Home  >  Article  >  Backend Development  >  这样一个功能如何实现

这样一个功能如何实现

WBOY
WBOYOriginal
2016-06-13 13:15:47792browse

这样一个功能怎么实现?
比如说:

http://192.168.1.32/ax?uid=1&ad=1&stn=mj

这里 ax?uid=1&ad=1&stn=mj 这个后缀 是固定的,其中 ax 其实是一个目录的名字,这个目录放在根目录也就是

http://192.168.1.32/ 下,



我要实现 无论 这个后缀之前的地址怎么变,

比如变成: http://192.168.1.32/gongsiyou/ 


都可以访问到 ax 下的 index.php , 并且 相关的子目录里不能生成转向的文件(最好不要生成)


------解决方案--------------------
伪静态
------解决方案--------------------
rewrite
------解决方案--------------------
在.httaccess文件中配置url_rewrite规则
然后开启apache的rewrite模块

Statement:
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