Forum Moderators: phranque

Message Too Old, No Replies

How to check the referrer and do the redirect

I wanted to do a referral base re-direct via .htacess

         

anandparanjape

2:10 am on Mar 27, 2007 (gmt 0)

10+ Year Member



Hi,
I wanted to do a referral base re-direct via .htaccess. I have seen few examples here but I couldn’t figure out the final code which i can use on my .htaccess file.

What I am trying to do is - I have a webpage www.example.com/image.htm which has a simple image abc.jpg inside it and when user comes from pagewww.example.com/try1.htm, he is able to see abc.jpg image on the page, but if the user comes from www.example.com/try2.htm he is shown xyz.jpg image.

Please let me know is it possible and what code I can use on .htaccess file.

Kind Regards,
Anand

[edited by: jdMorgan at 3:09 am (utc) on Mar. 27, 2007]
[edit reason] Example.com. Please see TOS and forum charter. [/edit]

wilderness

5:07 pm on Mar 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Here's a website that'll create the rules for.
Haven't a clue how tidy the end result is.

[htmlbasix.com...]