Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-10-04 14:12:52

shishira
Member
From: Bangalore India
Registered: 2005-04-17
Posts: 62
Website

dealing with diggs slashdot delicious ect

Came accross this article at shoemoney
basically the idea is to redirect refers drom digg slashdot etc to a cached page useing the following code in .htaccess

!start code

RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^192.168.1.2$
RewriteCond %{HTTP_USER_AGENT} !^CoralWebPrx
RewriteCond %{QUERY_STRING} !(^|&)coral-no-serve$
RewriteCond %{HTTP_REFERER} ^http://(www.)?digg.com [OR]
RewriteCond %{HTTP_REFERER} ^http://(www.)?slashdot.org [OR]
RewriteCond %{HTTP_REFERER} ^http://(www.)?slashdot.com [OR]
RewriteCond %{HTTP_REFERER} ^http://(www.)?fark.com [OR]
RewriteCond %{HTTP_REFERER} ^http://(www.)?somethingawful.com [OR]
RewriteCond %{HTTP_REFERER} ^http://(www.)?engadget.com [OR]
RewriteCond %{HTTP_REFERER} ^http://(www.)?boingboing.net [OR]
RewriteCond %{HTTP_REFERER} ^http://(www.)?del.icio.us
RewriteRule ^(.*)$ http://www.shoemoney.com.nyud.net:8080/$1 [R,L]

!end code

tried it out and my site went out

think the problem is with

<code><IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule></code>

what would be the right code to acheive the same ?

thanks a ton

Offline

Board footer

Powered by FluxBB