Forum Moderators: phranque
# Temporarily (302) redirect all traffic
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123 [OR]
RewriteCond %{REMOTE_ADDR} !^456\.456\.456\.456 [OR]
RewriteCond %{REMOTE_ADDR} !^789\.789\.789\.789
RewriteCond %{REQUEST_URI} !/splash\.html$
RewriteCond %{REQUEST_URI} !/splash\.jpg$
RewriteRule $ /splash\.html [R=302,L]
# End Temporary (302) redirect
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Thanks!
RewriteEngine on
#
# Temporarily (302) redirect all traffic to splash page
RewriteCond %{REMOTE_ADDR} !=123.123.123.123
RewriteCond %{REMOTE_ADDR} !=456.456.456.456
RewriteCond %{REMOTE_ADDR} !=789.789.789.789
RewriteCond %{REQUEST_URI} !/splash\.html$
RewriteCond %{REQUEST_URI} !/splash\.jpg$
RewriteRule ^ http://www.example.com/splash\.html [R=302,L]
You might also want to take a look at our recent thread about speeding up WordPress rewrites [webmasterworld.com]... That's some very inefficient code they've published.
Jim
I had read in a few different places that the [OR] was required because no-one could match more that IP concurrently?
I'm not sure what you mean by start-anchoring, unless that is the "^" character? I don't fully understand what that does, exactly.
I will definitely check out the WP rewrite. That must be something that would have to be re-updated if WP changed something?
Thanks again, I appreciate the help.
Is below the best place to start reading to learn more?
[httpd.apache.org...]