开发者

.htaccess: RewriteRule problem

i need to much the sentense, if it doesn't contain some words i wrote it like this

^([^news|home|rules|contacts|month_films|archive|ratings])$

but it doesn't work. could you tell me why? thanks开发者_JAVA技巧


In this case, put a ! in front of the regular expression and use a RewriteCond:

 RewriteCond %{REQUEST_URI} !(news|home|rules|contacts|month_films|archive|ratings)
 RewriteRule <whatever it is you want to do>


try this (without []):

 ^(news|home|rules|contacts|month_films|archive|ratings)$
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜