1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to redirect WITHOUT PHP???

Discussion in 'HTML & Website Design' started by Voimis, Oct 7, 2007.

  1. #1
    Hi dudes!

    I have a problem. www.freewebs.com doesn´t support PHP so I have to use some other way to redirect visitors directly before my page shows anything to other site.

    How can I do that with HTML?

    in PHP I mean:
    <?php header('Location: http://www.example.com'); ?>


    Thanks a lot!
     
    Voimis, Oct 7, 2007 IP
  2. craptalks

    craptalks Peon

    Messages:
    179
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <meta http-equiv="Refresh" content="0; URL=http://www.example.com">

    try that, the content is the time delay
     
    craptalks, Oct 7, 2007 IP
  3. Voimis

    Voimis Peon

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thans a lot to you guy!!!
     
    Voimis, Oct 7, 2007 IP
  4. roosevelt

    roosevelt Active Member

    Messages:
    73
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #4
    Voimis sometimes people Disable Meta refresh in their web browsers. So your page might not get redirected. Have the Javascript redirect code as well just incase meta-refresh is disabled:

    <script type="text/javascript">
    <!--
    window.location = "http://www.yea-baby.com/"
    //-->
    </script>
    HTML:
     
    roosevelt, Oct 7, 2007 IP
  5. datarecall

    datarecall Peon

    Messages:
    33
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    .htaccess will help you
     
    datarecall, Oct 7, 2007 IP
  6. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #6
    His host doesn't even support PHP, why would it allow him .htaccess?!
     
    soulscratch, Oct 7, 2007 IP
  7. datarecall

    datarecall Peon

    Messages:
    33
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Sorry i thought freewebs might let you put an htaccess file in your home directory.
     
    datarecall, Oct 7, 2007 IP
  8. committed2u

    committed2u Peon

    Messages:
    100
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    if your hosting has cpanel, you may redirect from the domain panel
     
    committed2u, Oct 7, 2007 IP
  9. committed2u

    committed2u Peon

    Messages:
    100
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    if your hosting has cpanel, you can redirect from the domain panel.
     
    committed2u, Oct 7, 2007 IP
  10. USPB

    USPB Peon

    Messages:
    887
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #10
    use meta tags or htaccess
     
    USPB, Oct 7, 2007 IP
  11. prinzcy

    prinzcy Active Member

    Messages:
    1,336
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    80
    #11
    Yup, I used freewebs as well and this coding work.
     
    prinzcy, Oct 7, 2007 IP
  12. Voimis

    Voimis Peon

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Is it possible to disable this code?
    And should I add <html><body></body></html> -tags to my page?

    Thanks a lot!
     
    Voimis, Oct 12, 2007 IP
  13. Western

    Western Well-Known Member

    Messages:
    1,751
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    135
    #13
    add this to berween
    <head>
    </head>
    tag
    its also possible in HTML default
     
    Western, Oct 12, 2007 IP