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

Help - need a little php coding (redirection)

Discussion in 'General Programming Chat' started by trecords, Jan 29, 2009.

  1. trecords

    trecords Registered Member

    Joined:
    Oct 5, 2008
    Messages:
    96
    Likes Received:
    87
    Hello,
    I need increase impression of my site on google adsense. I want run cron job to a little php which redirected to index or other page of my site.
    Who can give me this php?

    Thank you.
     
  2. rightbeginni

    rightbeginni Registered Member

    Joined:
    Oct 5, 2008
    Messages:
    93
    Likes Received:
    18
    do it via .htaccess, it is quite simple.
     
  3. trecords

    trecords Registered Member

    Joined:
    Oct 5, 2008
    Messages:
    96
    Likes Received:
    87
    Sorry, but i don.t know what to write to htaccess. Where to point cron?
     
  4. albertb

    albertb Registered Member

    Joined:
    Nov 18, 2008
    Messages:
    53
    Likes Received:
    9
    Why do you want to do a cron job? Its not required for redirection.
     
  5. trecords

    trecords Registered Member

    Joined:
    Oct 5, 2008
    Messages:
    96
    Likes Received:
    87
    I will cron it from different servers with different IPs :)
     
  6. abismal

    abismal Newbie

    Joined:
    Jan 18, 2009
    Messages:
    9
    Likes Received:
    1
    Occupation:
    IT
    <?
    header('Location: /index.html');
    ?>

    just change /index.html to whatever you like. Should redirect any access to that page.