Possible to use .htaccess for this purpose?

Discussion in 'Apache' started by Aarashh, Sep 17, 2010.

  1. #1
    Hi,

    I wonder if Its possible to either use htaccess or php to redirect like every third or fourth visitor to my site to another site? :)

    Like 3 visitors visit my website but just 1 one of them gets redirected to another site? :)
    Can someone help me on this one, would appreciate it much.

    Regards
     
    Aarashh, Sep 17, 2010 IP
  2. extremephp

    extremephp Peon

    Messages:
    1,290
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You Should Be Using PHP for this!

    ~ExP~
     
    extremephp, Sep 17, 2010 IP
  3. Aarashh

    Aarashh Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well I'm no good at PHP and coding, do you have any link or useful guidance of how I can do this? :)

    Regards
     
    Aarashh, Sep 17, 2010 IP
  4. ajomehri

    ajomehri Active Member

    Messages:
    212
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #4
    you can put an if statement in header file with meta refresh
     
    ajomehri, Sep 17, 2010 IP