What is the correct code to redirect my homepage?

Discussion in 'Search Engine Optimization' started by jonas, Sep 18, 2012.

  1. #1
    I am looking to redirect my homepage for this website www.mirror-mirror.org to http://www.mirror-mirror.org/eatdis.htm

    I found this code in an online search, but wanted to make sure its correct.

    <meta http-equiv="refresh" content="0;URL=http://www.mirror-mirror.org/eatdis.htm">

    Any help would be appreciated.
     
    jonas, Sep 18, 2012 IP
  2. seoposter

    seoposter Peon

    Messages:
    13
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think it is a lot safer to use a .htaccess file and issue a permanent 301 redirect. Here's the equivalent code of the redirection using .htaccess.

    Redirect 301 / http://www.mirror-mirror.org/eatdis.htm
    
    Note: For more redirection options, you can visit the resources below:
    http:/ /ndesign-studio .com/blog /301-htaccess-redirect
    http:/ /www.webconfs .com/how-to-redirect-a-webpage.php
    Code (markup):
     
    seoposter, Sep 18, 2012 IP
  3. jonas

    jonas Well-Known Member

    Messages:
    339
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    110
    #3
    jonas, Sep 18, 2012 IP
  4. sanjayyadav

    sanjayyadav Greenhorn

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    If you want to redirect your page permanently then you need to use 301 redirection and if you want to redirect your page temporary then you can use 302 redirection.
     
    sanjayyadav, Sep 18, 2012 IP
  5. Sarah Reece

    Sarah Reece Greenhorn

    Messages:
    11
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    13
    #5
    You will need to place the above Redirect 301 line of code in the .htaccess file (anywhere after the code "RewriteEngine on") within your website's home directory.
     
    Sarah Reece, Sep 19, 2012 IP