Home > Backend Development > PHP Tutorial > 请教IP地址url重写的问题

请教IP地址url重写的问题

WBOY
Release: 2016-06-23 14:01:24
Original
944 people have browsed it

有一个地址
http://212.67.221.114/~oxfordro/
访问是没有当前页面

现在的修改要求是
访问这个的时候,等于访问
http://212.67.221.114/~oxfordro/2013 的内容

url重写怎么写?不要301跳转,是重写,能做到吗?

有什么方法


回复讨论(解决方案)

这个不需要url从写啊,直接解析 $_SERVER['REDIRECT_URL']
然后调用2013指定的方法。

你一定要通过.htaccess配置也可以

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