Something like :
<IfModule mod_rewrite.c>
RewriteEngine On
#redirect external clients:
# Check if the client is comming from dmz = external
RewriteCond %{REMOTE_ADDR} ^(10\.47\.182\.\d{1,3})$
#Redirect to "file" if accessing Document ROOT or /folder/ directly
RewriteRule ^/(folder(/?))?$ [
myserver.com...] [R]
# Redirect internal clients:
# Check if the client is NOT comming from dmz = Internal client
RewriteCond %{REMOTE_ADDR} !^(10\.47\.182\.\d{1,3})$
#Redirect to "file" if accessing Document ROOT or /folder/ directly
RewriteRule ^/(folder(/?))?$ http ://www.myserver.int/folder/file [R]
</IfModule>
Is it allowed with the "!" in my last RewriteCond ?
(Trying to be a NOT operator) (inverting)
Basically ia want this to be true if my IP is not starting with "10.47.182"
I do want the URL to be changed in the browser. No problem letting users go to /folder/file, thats what i want them to do. I do not want them to go to "/" or "/folder/" becouse then my app will not work.