1
如果文件夹存在,我怎样才能让.htaccess
忽略规则?如何让.htaccess忽略规则如果文件夹存在?
规则:
RewriteRule ^([a-zA-Z0-9-z\-]+)/([a-zA-Z0-9-z\-]+)$ index.php?ht=$1&hht=$2
RewriteRule ^([a-zA-Z0-9-z\-]+)/([a-zA-Z0-9-z\-]+)/$ index.php?ht=$1&hht=$2
RewriteRule ^([a-zA-Z0-9-z\-]+)$ index.php?ht=$1&hht=$2
RewriteRule ^([a-zA-Z0-9-z\-]+)/$ index.php?ht=$1&hht=$2
例如: 如果我去:http://my_domain.com/admin
它重定向到index.php
在原始文档根目录,而不是/admin/index.php
谢谢!
涂料的人,谢谢! – Peter 2013-04-22 12:57:24
不客气。 – 2013-04-22 13:20:44