raven007
10-06-2005, 02:34 AM
Sad to say that my site crashed (a phpbb forum) because of being listed in Digg (Just glad it wasnt slashdot). Anyways wondering if someone out there could make a .htaccess file so that if someone is being directed from the digg or slashdot website they are directed to the example.com.nyud.net:8090 page
For example say suppost the url http://example.com/viewtopic.php?t=34 gets listed on slashdot or digg, i want to do a rewrite of the url so that it points here http://example.com.nyud.net:8090/viewtopic.php?t=34
got this far,
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} slashdot\.org [NC,OR]
RewriteCond %{HTTP_REFERER} digg\.com
RewriteRule ^/(.example.net:8090*)$ http://%www.example.com$1 [R]
For example say suppost the url http://example.com/viewtopic.php?t=34 gets listed on slashdot or digg, i want to do a rewrite of the url so that it points here http://example.com.nyud.net:8090/viewtopic.php?t=34
got this far,
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} slashdot\.org [NC,OR]
RewriteCond %{HTTP_REFERER} digg\.com
RewriteRule ^/(.example.net:8090*)$ http://%www.example.com$1 [R]