请问这段rewrite怎么写

WBOY
Release: 2016-06-23 14:24:41
Original
969 people have browsed it

我想在.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地址,而不能写相对地址呢

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