Apache 阻止htaccess中的文件夹重定向
以下规则位于htaccess文件中,需要保留:Apache 阻止htaccess中的文件夹重定向,apache,.htaccess,mod-rewrite,seo,Apache,.htaccess,Mod Rewrite,Seo,以下规则位于htaccess文件中,需要保留: # GENERAL RewriteRule ^([A-Za-z_0-9\-]+)$ /index.php?page=$1 [QSA] RewriteRule ^([A-Za-z_0-9\-]+)/$ /index.php?page=$1 [QSA] RewriteRule ^([A-Za-z_0-9\-]+)/([a-z]+)$ /index.php?page=$1&comp=$2 [QSA] RewriteRule ^([A-Za-z_
# GENERAL
RewriteRule ^([A-Za-z_0-9\-]+)$ /index.php?page=$1 [QSA]
RewriteRule ^([A-Za-z_0-9\-]+)/$ /index.php?page=$1 [QSA]
RewriteRule ^([A-Za-z_0-9\-]+)/([a-z]+)$ /index.php?page=$1&comp=$2 [QSA]
RewriteRule ^([A-Za-z_0-9\-]+)/([a-z]+)/$ /index.php?page=$1&comp=$2 [QSA]
但是,我需要阻止某个特定文件夹重定向,让我们称之为/folder/
我似乎无法让它正常工作,希望有人能帮我
谢谢 在顶部添加:
RewriteRule ^folder/ - [L,NC]