Home >Backend Development >PHP Tutorial > 关于.htaccess里面正则表达式的有关问题

关于.htaccess里面正则表达式的有关问题

WBOY
WBOYOriginal
2016-06-13 12:40:341033browse

关于.htaccess里面正则表达式的问题
在.htaccess里面
写了这句
RewriteRule  ^([A-Za-z]+)/($) movie/index.php?entrance=$1

达到的效果就是如:
http://www.ydutv.com/Dongzuopian/ 进入a页面
http://www.ydutv.com/Kongbupian/ 进入a页面
但是我现在要求当进入
http://www.ydutv.com/search/ 的时候不要进入a页面,而是进入b页面。
那么我想应该是在RewriteRule  ^([A-Za-z]+)/($) movie/index.php?entrance=$1 红色部分里面加排除"search",请问应该怎么写呢?当排除的不止"search"如再加一个排除"play"呢?

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