Domanda

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.

È stato utile?

Soluzione

RewriteEngine On
RewriteRule downloads/ - [L]  # do not rewrite downloads/
RewriteRule ^ http://www.example-domain2.org [R,L]  #redirect anything else
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top