Joachim Karlsboeck wrote:

Hi all,

I am using Midgard and like to redirect to an url within Apache when a
special client remote IP shows up.

Where can I specify my rewrite rule?

RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^xxx\.xxx\.xxx\.xxx$
RewriteRule ^(.*) http://www.example.com/ [R,L]

In the VirtualHost entry in Apache, I'd assume. I don't think you'd have to do anything special with Midgard.



-- JustThe.net Internet & New Media Services 22674 Motnocab Road * Apple Valley, CA 92307-1950 Steve Sobol, Proprietor 888.480.4NET (4638) * 248.724.4NET * [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to