1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Htaccess question

Discussion in 'General Programming Chat' started by dadboss, Nov 12, 2008.

  1. dadboss

    dadboss BANNED BANNED

    Joined:
    Sep 29, 2007
    Messages:
    83
    Likes Received:
    52
    HI

    I need to put random stuff in my htaccess
    Ex : 10% of the time it shows an image and 90% of the time it redirect to an url
     
  2. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,227
    Occupation:
    Retired
    Location:
    Old Peoples Home
    Not sure how easy that would be using htaccess, but you could do it easily by redirecting from a PHP file.

    Use the htaccess file to redirect a jpg image to the above PHP script and you should be good to go.