Home  >  Article  >  Backend Development  >  请问这段rewrite怎么写

请问这段rewrite怎么写

WBOY
WBOYOriginal
2016-06-23 14:24:41966browse

我想在.htaccess文件中让请求为http://www.***.com/wxchat/index.php/api/index.php的重定向到http://www.***.com/wxchat/index.php/api 呢?rewrite 规则不熟,请大侠们帮忙 谢谢了


回复讨论(解决方案)

Redirect 301 /wxchat/index.php/api/index.php http://www.***.com/wxchat/index.php/api

Redirect 301 /wxchat/index.php/api/index.php http://www.***.com/wxchat/index.php/api
赞啊,非常感谢,在追问下,为什么后面要写http地址,而不能写相对地址呢

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