This is a discussion on different targets for different areas within the Apache Web Server forums, part of the Web Server and Related Forums category; hello NG! is it possible to redirect people from LAN IP is like 10.0.0.x to an specific ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Moser Ludwig wrote: > hello NG! > > is it possible to redirect people from LAN > IP is like 10.0.0.x to an specific subdirectory of my apache? > and all others access the root direcotry? > > thanks in advance > ludwig moser a variant of the rules given on this page of the docs http://httpd.apache.org/docs/2.0/misc/rewriteguide.html RewriteCond %{REMOTE_ADDR} ^10\.10\.10\. RewriteRule ^/?$ /directory/ [L] should do it. |