different targets for different areas

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-27-2006
Moser Ludwig
 
Posts: n/a
Default different targets for different areas

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


  #2 (permalink)  
Old 11-27-2006
shimmyshack
 
Posts: n/a
Default Re: different targets for different areas


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.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:07 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0