Home  >  Article  >  Backend Development  >  请问IP地址url重写的有关问题

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

WBOY
WBOYOriginal
2016-06-13 11:50:071136browse

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

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

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

有什么方法

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

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

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
Previous article:关于指南流程的编撰Next article:求查询优化步骤