Welcome to WebmasterWorld Guest from 50.17.16.177

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

.htaccess Redirect Referrer

Redirecting by Referrer

     
3:36 pm on May 30, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 29, 2001
posts:1081
votes: 16


Hello,

I'm searching for a way, via .htaccess file, to redirect a visitor on my site by the refering page to another page on my site.

Below is what I have tried, but does not seem to do anything.

RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_REFERER} ^http://www.mysite.com/frompage.html$
RewriteRule ^.*$ [mysite.com...] [L,R]

10:11 pm on May 30, 2002 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
posts:5808
votes: 64


try this:

Redirect 301 /frompage.html [mysite.com...]