Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: Auto redirect

  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Auto redirect

    Is it possible to place some HTML code on a page and when someone opens that page say www.thispage.com they are directed to a different site with the address www.thispage.com stays there and never moves, doesnt matter what page they click on,

    the reason i ask is this,

    I made this site www.davidstokes.com/avi/3 and i want to have it here www.avi.ie but my boss doesnt know how to remove the old site and doesnt have ftp access so i cant remove it,, but there is an online CMS there so i can edit the code.

    can anyone help.

    thanks.

  • #2
    Regular Coder
    Join Date
    Jan 2005
    Location
    Essex
    Posts
    146
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So you want a url redirection script.
    Danny Hayes
    Under Construction www.hayes-design.co.uk

  • #3
    Regular Coder
    Join Date
    Mar 2005
    Posts
    123
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.r2xdesign.net/viewcontent-34

    is that what you're looking for?

  • #4
    New to the CF scene
    Join Date
    May 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    try this:

    <script language="JavaScript">
    location.href="http://www.yourwebsite.com"
    </script>

    matt

  • #5
    Regular Coder Crake's Avatar
    Join Date
    Dec 2004
    Location
    Loose, Maidstone, KENT
    Posts
    577
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by webman33
    try this:

    <script language="JavaScript">
    location.href="http://www.yourwebsite.com"
    </script>

    matt
    that script is one of many if that doesent work try google

    www.google.co.uk

    or

    www.hotscripts.com
    SteveO

  • #6
    New to the CF scene
    Join Date
    Jun 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <META http-equiv="refresh" content="5;URL=HTTP://www.Randomsite.com">

    Plz wait you will be redirected </br>


    deleting C:/ ...... j/k </br>

    <a href="HTTP://www.Randomsite.com"> Click here </a> if it fails

  • #7
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Using META Refresh is possibly a better idea in case people have JS disabled - but I think in some browser versions (IE6?) you can even disable them - so it may be better using both JS and a META Refresh to do it. The alternative link is a good idea too.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •