请问IP地址url重写的有关问题

WBOY
Release: 2016-06-13 11:50:07
Original
1135 people have browsed it

请教IP地址url重写的问题
有一个地址
http://212.67.221.114/~oxfordro/
访问是没有当前页面

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

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

有什么方法

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

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

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!