Im having a bit of touble with a rewrite rule and can't see why it doesn't work.
I just double checked and my REMOTE_HOST ends with ntli.net so I want to redirect that host to another URL so I tried:
RewriteEngine On
RewriteCond %{REMOTE_HOST} ntli\.net$
RewriteRule ^.* http://www.wiredon.net/img/ [R,L]
This doesn't do anything.
However:
RewriteEngine On
RewriteCond %{REMOTE_HOST} ^$
RewriteRule ^.* http://www.wiredon.net/img/ [R,L]
...does.
BUT it seems to get stuck in a loop and never loads the /img/ url properly.
Anyone have any ideas why this is? ......rewriting to a different URL works ok.
Also does anyone know why it isn't detecting my host properly? ......Ive tried loads of different things like HTTP_USER_AGENT and they seem to work ok, it just doesn't seems to recognise my REMOTE_HOST
I just double checked and my REMOTE_HOST ends with ntli.net so I want to redirect that host to another URL so I tried:
RewriteEngine On
RewriteCond %{REMOTE_HOST} ntli\.net$
RewriteRule ^.* http://www.wiredon.net/img/ [R,L]
This doesn't do anything.
However:
RewriteEngine On
RewriteCond %{REMOTE_HOST} ^$
RewriteRule ^.* http://www.wiredon.net/img/ [R,L]
...does.
BUT it seems to get stuck in a loop and never loads the /img/ url properly.
Anyone have any ideas why this is? ......rewriting to a different URL works ok.
Also does anyone know why it isn't detecting my host properly? ......Ive tried loads of different things like HTTP_USER_AGENT and they seem to work ok, it just doesn't seems to recognise my REMOTE_HOST