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

Redirect Code?

Discussion in 'HTML & JavaScript' started by Jared255, May 29, 2009.

  1. Jared255

    Jared255 Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    May 10, 2009
    Messages:
    1,911
    Likes Received:
    1,666
    Location:
    Boston, MA
    Hey guys, I am using WebsiteTonight to edit my website (yes I know it isn't the best) and I tried <meta http-equiv="refresh" content="0;url=http://modwest.com"/>(modwest just an example) but then when I went to edit it, it just gave me that webpage even on the editor. It was lame.

    Anyways, is there a code I can put on a website to redirect someone to another website while still allowing me to edit the website? I would like it to be close to instant, so if they put in www.thiswebsite.com they go to www.thatwebsite.com in a few seconds.

    Thanks for any help, it is really appreciated!
     
  2. BozoClown

    BozoClown Junior Member

    Joined:
    Jan 4, 2009
    Messages:
    150
    Likes Received:
    106
    Why don't you add the meta refresh last?
     
  3. lokiceo

    lokiceo Registered Member

    Joined:
    Jul 26, 2008
    Messages:
    77
    Likes Received:
    30
    Location:
    WI
    Not quite sure I understand the problem and not sure how your editor works, but there are several ways you can do redirects, htaccess, php, and meta refreshes are the most common. You could simply put:
    Code:
    <html><head><meta http-equiv="refresh" content="0;url=http://modwest.com"/></head><body></body></html>
    
    in the root index file on thiswebsite.com and just use the editor to edit thatwebsite.com