Redirect code

Discussion in 'HTML & Website Design' started by Skid, Dec 14, 2009.

  1. #1
    How would I go about redirecting a microsoft office website to a wordpress blog?
     
    Skid, Dec 14, 2009 IP
  2. cbryant03

    cbryant03 Member

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #2
    like a 302 redirect? of a page or an entire domain?
     
    cbryant03, Dec 14, 2009 IP
  3. Skid

    Skid Peon

    Messages:
    322
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    An entire domain.
     
    Skid, Dec 14, 2009 IP
  4. jonathandey

    jonathandey Active Member

    Messages:
    112
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Being a Microsoft Office website I imagine you have a Office live account, using this sign in to office live and then go to domain management. Once you are on there, I believe there is an option to redirect your website to another page or website.

    Hope this helps. :)
     
    jonathandey, Dec 15, 2009 IP
  5. Olsson

    Olsson Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well, if you just want to redirect domain "A" to domain "B", just setup a index.html with;
    <script type="text/javascript">
    window.location = "yourdomain.com";
    </script>

    Maybe I misunderstood?
     
    Olsson, Dec 15, 2009 IP
  6. Skid

    Skid Peon

    Messages:
    322
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I want reddirtpaint(dot)com sent to reddirtpaintball(dot)com. Is that what your code would do?
     
    Skid, Dec 15, 2009 IP
  7. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #7
    Jalpari, Dec 15, 2009 IP
  8. Olsson

    Olsson Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    <script type="text/javascript">
    window.location = "http://reddirtpaintball.com";
    </script>

    Put that into your "index.html" on reddirtpaint(dot)com.
    Everytime someone types in "reddirtpaint(dot)com" into their browsers, they'll automatically be redirected to "reddirtpaintball(dot)com".
     
    Olsson, Dec 15, 2009 IP
  9. Skid

    Skid Peon

    Messages:
    322
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Ok, how would I find the index.html folder? Where would it be at?
     
    Skid, Dec 15, 2009 IP
  10. gastongr

    gastongr Well-Known Member

    Messages:
    421
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    108
    #10
    Index.html is the file that opens up when you access to that domain name...
    The code posted before would load that page normaly and then redirect.

    The best option is to do a 301 redirect as jalpari said but you need to upload a new file and support for httaccess
     
    gastongr, Dec 15, 2009 IP
  11. Magina™

    Magina™ Active Member

    Messages:
    258
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #11
    make a php script

    <?php
    header("Location: URL");
    exit;
    ?>

    index.php
     
    Magina™, Dec 15, 2009 IP
  12. Highwayman

    Highwayman Peon

    Messages:
    117
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Changing the htaccess is the best way of doing it. Then there's no way of Google indexing a blank html page.
     
    Highwayman, Dec 15, 2009 IP