문제

Currently I have a RewriteRule in httpd.conf which leads example-domain.org to example-domain2.org:

RewriteEngine On
RewriteRule ^/ http://www.example-domain2.org [R,L]

But I would like to not redirect file requests under www.example-domain.org/downloads/*

Is it possible somehow? Thx.

도움이 되었습니까?

해결책

RewriteEngine On
RewriteRule downloads/ - [L]  # do not rewrite downloads/
RewriteRule ^ http://www.example-domain2.org [R,L]  #redirect anything else
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top