htaccess mod redirect works in ie but not firefox?

htaccess mod redirect works in ie but not firefox?

Posted by: tuffguy
Posted on: 2009-02-27 09:30:00

Hello all

Recently started learning some stupid htaccess tricks, yay! Fun stuff

Anyway, I'm completely new to this but got some great code off the dreamhost wiki

That works - so now when people follow links to my site from some troublemaker who is talking trash about my site, they are redirected to an amusing page on a completely unrelated site - "You got Rick Rolled" or some such silliness

Problem : I've check and tested this every way i can think of and for some reason my redirects only work in IE and Safari - when the user with the Firefox browser seem to follow the offending inbound links as per normal

Obviously not life or death here, but it sure would be satisfying if I could get this to work - anyone have any ideas as to what I need to add (or modify) here, based on the below?

This is from my .htaccess file on the root level of my site, BTW

Many thanks!

Zach

**********code*******

RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.annoyingblog.org/userpage/
RewriteRule /* http://www.youtube.com/amusingvideo123456 [R,L]

RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.gossips.com/forum/
RewriteRule /* http://www.funnypictures.com/clownswithpies.html [R,L]

Edited by tuffguy on 02/27/09 09:34 AM (server time).

Re: htaccess mod redirect works in ie but not firefox?

Posted by: sXi
Posted on: 2009-02-27 10:44:00

RewriteEngine On

RewriteCond %{HTTP_REFERER} ^http://annoyingblog.org/userpage/.*$ [NC]
RewriteCond %{HTTP_REFERER} ^http://www.annoyingblog.org/userpage/.*$ [NC]
RewriteRule ^(.*)$ http://www.youtube.com/watch?v=NoP6HkxjS38 [R,NC,L]

RewriteCond %{HTTP_REFERER} ^http://gossips.com/forum/.*$ [NC]
RewriteCond %{HTTP_REFERER} ^http://www.gossips.com/forum/.*$ [NC]
RewriteRule ^(.*)$ http://www.funnypictures.com/clownswithpies.html [R,NC,L]




How To Install PHP.INI / ionCube on DreamHost

Re: htaccess mod redirect works in ie but not firefox?

Posted by: tuffguy
Posted on: 2009-02-27 11:01:00

Thank you! Will try imediately!

BTW please ignore my username its a joke between me and my ex, LOL

Tags: http refererroot levelinbound linksserver timehtaccess filemany thanksfun stuffsafarifirefoxwikirewritecond