FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > Open Discussions
User Name
Password  Lost PW

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 01-17-2012, 04:50 PM   Postid: 180836
johnfl68
Site Owner
 
johnfl68's Avatar

Forum Notability:
975 pts: Dignified Competence!
[Post Feedback]
 
Join Date: Nov 2003
Location: Orlando, FL
Posts: 1,141
Stop SOPA Blackout page

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
__________________
Klaatu: I won't resort to threats, Mr. Harley. I merely tell you the future of your planet is at stake.
The Day the Earth Stood Still (1951)
johnfl68 is offline   Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:30 AM.


Running on vBulletin®
Copyright © 2000 - 2019, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2019 FutureQuest, Inc.
FutureQuest, Inc.