[thelist] Quick Mod Rewrite Question
Tim Beadle
tim.beadle at iop.org
Fri Jun 25 05:57:43 CDT 2004
On Fri, 2004-06-25 at 11:47, Andy Budd wrote:
> rewriteEngine On
> rewriteCond %{HTTP_HOST} ^mysite.co.uk$ [NC]
> rewriteCond %{HTTP_HOST} ^www.mysite.co.uk$ [NC]
> rewriteRule ^.*$ http://www.newsite.co.uk/ [R,L]
You need to add an [OR] flag. [AND] is implicit, so you were asking it
to meet *both* criteria in your example ;)
i.e:
rewriteEngine On
rewriteCond %{HTTP_HOST} ^mysite.co.uk$ [NC] [OR]
rewriteCond %{HTTP_HOST} ^www.mysite.co.uk$ [NC]
rewriteRule ^.*$ http://www.newsite.co.uk/ [R,L]
HTH,
Tim
--
Tim Beadle <tim.beadle at iop.org>
Institute of Physics
Registered charity No. 293851
76 Portland Place, London, W1B 1NT, England
IOP Publishing Limited
Registered in England under Registration No 467514.
Registered Office: Dirac House, Temple Back, Bristol BS1 6BE England
This e-mail message has been checked for the presence of computer viruses.
More information about the thelist
mailing list