【发布时间】:2014-11-28 10:20:53
【问题描述】:
我的 .htaccess 中有一个 www 重定向:
RewriteCond %{HTTP_HOST} example\.com
RewriteRule ^(.*)$ http://www.example/ [R=permanent]
现在我想排除一个文件夹以使用上述重定向。 我想访问一个文件夹而不被重定向到带有 www 的域。 例如: 我想要什么:example.com/test 会发生什么:www.example.com/test
我可以只排除文件夹 test 吗?
【问题讨论】:
标签: regex apache .htaccess mod-rewrite redirect