目前我在httpd.conf中有一个RewriteRule,它将example-domain.org引向example-domain2.org:
RewriteEngine On
RewriteRule ^/ http://www.example-domain2.org [R,L]
但我不想在www.example-domain.org/downloads / *
下重定向文件请求有可能吗? THX。
答案 0 :(得分:0)
RewriteEngine On
RewriteRule downloads/ - [L] # do not rewrite downloads/
RewriteRule ^ http://www.example-domain2.org [R,L] #redirect anything else