How to make a 301 redirect?

Discussion in 'Google' started by Joshua Pitts, Sep 8, 2009.

  1. #1
    Search engines may think scifi-zone.net and www.scifi-zone.net are two different sites.You should set up a permanent redirect (technically called a "301 redirect") between these sites. Once you do that, you will get full search engine credit for your work on these sites.
    
    For example, scifi-zone.net seems to have 3,915 inbound links whereas www.scifi-zone.net has 198 inbound links. By correctly configuring a permanent 301 redirect, the search rankings might improve as all inbound links are correctly counted for the website.
    Code (markup):
    is what one of those ranking sites told me. How can I fix this? I dont use cpanel, so yea.
     
    Joshua Pitts, Sep 8, 2009 IP
  2. hitboy

    hitboy Well-Known Member

    Messages:
    2,939
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    170
    #2
    If you want to make a 301 redirect using htaccess to redirect a whole site its not that hard. Look at the page below for exact instructions. I've used this same method countless times when I was switching a sites domain. You can also use this method for redirecting no www. to a www.

    301 Redirect
     
    hitboy, Sep 8, 2009 IP
  3. new-media

    new-media Peon

    Messages:
    73
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi this is whats in my index.php - just perm moved a domain onebuk.com to another site.. also tracing this is google...


    <?php

    header('HTTP/1.1 301 Moved Permanently');
    header("Location: http://www.new-mediamarketing.co.uk?utm_source=onebuk&utm_medium=HTTP301&utm_campaign=MovedPermanently");

    ?>
     
    new-media, Sep 8, 2009 IP
  4. seminar

    seminar Active Member

    Messages:
    226
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    Thankyou for good share
    i was also seekinl 301 redirect
     
    seminar, Sep 8, 2009 IP
  5. t2000q

    t2000q Prominent Member

    Messages:
    4,636
    Likes Received:
    192
    Best Answers:
    0
    Trophy Points:
    300
    Digital Goods:
    1
    #5
    make a file called .htaccess

    add the following

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^yourwebsite\.com
    RewriteRule (.*) http://www.yourwebsite.com%{REQUEST_URI} [R=301,L]


    :)
     
    t2000q, Sep 8, 2009 IP
  6. schoie1981

    schoie1981 Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi was just wondering if anyone can help me redirect my internal pages as ive changed a couple of page id's

    ive been copy an pasting the:

    redirect 301 /old/old.htm http://www.you.com/new.htm

    to my .htacess but its still not working

    any clues??

    Cheers
     
    schoie1981, Sep 24, 2009 IP
  7. allprjct

    allprjct Peon

    Messages:
    81
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    allprjct, Sep 24, 2009 IP
  8. schoie1981

    schoie1981 Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Cheers for the link.. but thats actually where i got the info from orignally to do the redirect ha!

    Im following the instructions.. its changing the pade id to the new one in the internet broswer.. but adding loads of rubbish on end .. like frontend blah blah! just wondering if i need to switch on a settin somewhere as well as adding all these redirect 301 codes to my .htaccess??

    whats mod rewrite that i keep reading about??

    Also.. it says miss off the www:// for the first bit an just do the path from the top level of the root directory.. so basically this is from the / after my domain name ie. www.domain.co.uk /catalog/product.html

    am i on the track??

    Cheers

    Mark
     
    schoie1981, Sep 24, 2009 IP
  9. schoie1981

    schoie1981 Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    ps. im gettin this error when adding the redirect 301 code into my .htaccess file?????

    http://www.mydomain.co.uk/product/new-page-name/?__furl_path=product/old-page-name&frontend=1

    Thanks
     
    schoie1981, Sep 24, 2009 IP
  10. aamigallery

    aamigallery Guest

    Messages:
    1,362
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I use cPanel for 301 redirects.
     
    aamigallery, Sep 29, 2009 IP
  11. schoie1981

    schoie1981 Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    ok.. but is that only for a redirect of the whole website??? Ive changed individual page names / Id's so need to do seperate redirects for each page ive changed i think... or is this something you can do in the cpanel????

    Cheers for any help!
     
    schoie1981, Sep 29, 2009 IP
  12. schoie1981

    schoie1981 Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    ps. think i might be too late now.. do old sub-pages dissapear out of googles indexed if there not remapped within say 2 weeks???
     
    schoie1981, Sep 29, 2009 IP