Hello all (mainly those in the US):
I found a good Stop SOPA Blackout page here:
http://mashable.com/2012/01/17/stop-sopa-code-go-dark/
The actual page code can be found here:
https://github.com/zachstronaut/stop-sopa
Now calling all you .htaccess experts.
I was thinking of using the common htaccess maintenance page rewrite, so that all of the pages on the site will go to the stopsopa.html file.
People are recommending to use 503 code instead of 307, is the 503 better for a 12 hour duration than the 307 for spiders and crawlers? If so, do I just need to change the 307 to 503 in the code below:
Code:
RewriteEngine On
RewriteBase /
# Before using this line, you MUST change the digits to match your own IP address.
#RewriteCond %{REMOTE_ADDR} !^111\.222\.333\.444$
# The remaining two code lines close the site. They say:
# If the request is for any page other than /stopsopa.html, ask the browser
# to issue a new request, for /stopsopa.html, just this one time.
# Allowing stopsopa.html to be served as-is prevents an endless redirect loop.
RewriteCond %{REQUEST_URI} !^/stopsopa\.html$
#To allow another file, copy the line above to here and change the filename.
#This line says: redirect to stopsopa.html.
#This is a redirect (sent back to the browser), so the full URL is required.
RewriteRule ^(.*)$ http://yourdomain.com/stopsopa.html [R=307,L]
Also, is there a easy way to make this automatic from 8am to 8pm my local time? I may not be near a computer at 8pm time. I'm looking around other places as well, but the people here seem to have some of the best answers.
Thanks for anyone helping to support this, and additions you want to make.
John