Forum Moderators: phranque
RewriteBase /
# If not remote IP address 1
RewriteCond %{REMOTE_ADDR} !^144\.104\.245\.85
# And if not remote IP address 2
RewriteCond %{REMOTE_ADDR} !^210\.240\.198\.22
# Then redirect all requests to /host
RewriteRule !^host/ [mysite.com...] [R=301,L]
What I want to do is add an exception for 2 directories
/tracker/ and /list/
What is the best way to do this should I just add the following code before the above rewrite code
RewriteCond %{REQUEST_URI} !^tracker
RewriteRule /tracker/ [L]
RewriteCond %{REQUEST_URI} !^list
RewriteRule /list/ [L]
Is that the correct way of doing it or is there another correct method ? Thanks for your help :-)