【发布时间】:2010-12-16 11:30:10
【问题描述】:
这是Redirect only HTML files?的延续
如何更改我的 .htaccess 以使其从纯 HTML 重定向中排除某些子文件夹或子域?我尝试使用此代码排除“下载”子文件夹以及“开发”和“支持”子域,但它不起作用:
RewriteCond %{HTTP_HOST} ^pandamonia.us$ [OR]
RewriteCond %{HTTP_HOST} ^www.pandamonia.us$ [OR]
RewriteCond %{HTTP_HOST} !download [OR]
RewriteCond %{HTTP_HOST} !faq
RewriteCond %{HTTP_HOST} !support [OR]
RewriteRule /.+\.html$ "http\:\/\/pandamonia\.us\/" [L]
【问题讨论】:
标签: html apache mod-rewrite subdomain subdirectory