+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18

 

Thread: What is a 301 redirect?

  1. #1
    Dazza30's Avatar
    Registered User

    Status
    Offline
    Join Date
    Mar 2006
    Location
    cheshire uk
    Posts
    1,141
    Thanks
    79
    Thanked 43 Times in 33 Posts


    I was given this advice today but i dont know what a 301 redirect is, can some one please tell me?

    Permanent Redirect Not Found
    Search engines may think www dream4mobiles.co.uk and dream4mobiles.co.uk 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.

  2. #2
    Super Moderator

    Status
    Online
    Join Date
    Aug 2003
    Location
    Worcestershire
    Posts
    770
    Thanks
    7
    Thanked 15 Times in 14 Posts
    You need to set up a .htaccess file in your root directory and include the following 3 lines.

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^dream4mobiles.co.uk
    RewriteRule (.*) http://www.dream4mobiles.co.uk/$1 [R=301,L]

    This will then make the www and non www versions of your site look like a unified site, instead of a duplicate/mirror.
    Pete

  3. #3
    Registered User

    Status
    Offline
    Join Date
    Jul 2007
    Posts
    419
    Thanks
    28
    Thanked 36 Times in 25 Posts

  4. #4
    Dazza30's Avatar
    Registered User

    Status
    Offline
    Join Date
    Mar 2006
    Location
    cheshire uk
    Posts
    1,141
    Thanks
    79
    Thanked 43 Times in 33 Posts
    Quote Originally Posted by Pete Taylor View Post

    This will then make the www and non www versions of your site look like a unified site, instead of a duplicate/mirror.

    I dont understand the basic principle behind this, as far as im aware there is only one version of my site so why would i need to unify anything?


    Thanks for the resource link channel5 ill take a look.

  5. #5
    Super Moderator

    Status
    Online
    Join Date
    Aug 2003
    Location
    Worcestershire
    Posts
    770
    Thanks
    7
    Thanked 15 Times in 14 Posts
    Agreed, there is only 1 physical version of your site, but it can be accessed either by going to www.dream4mobiles.co.uk or dream4mobiles.co.uk (without the www), so search engines see this as 2 sites and assume one site is a duplicate of the other.
    Pete

  6. #6
    Super Moderator

    Status
    Online
    Join Date
    Aug 2003
    Location
    Worcestershire
    Posts
    770
    Thanks
    7
    Thanked 15 Times in 14 Posts
    Quote Originally Posted by Dazza30 View Post
    I dont understand the basic principle behind this, as far as im aware there is only one version of my site so why would i need to unify anything?


    Thanks for the resource link channel5 ill take a look.

    Looks like you have now added the code, so that it always goes to the www version.
    Pete

  7. #7
    Dazza30's Avatar
    Registered User

    Status
    Offline
    Join Date
    Mar 2006
    Location
    cheshire uk
    Posts
    1,141
    Thanks
    79
    Thanked 43 Times in 33 Posts
    Ive just started to read the article on canonicalization and its becoming clearer now, thanks to everyone for helping clear this up for me.

  8. #8
    Dazza30's Avatar
    Registered User

    Status
    Offline
    Join Date
    Mar 2006
    Location
    cheshire uk
    Posts
    1,141
    Thanks
    79
    Thanked 43 Times in 33 Posts
    Quote Originally Posted by Pete Taylor View Post
    You need to set up a .htaccess file in your root directory and include the following 3 lines.

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^dream4mobiles.co.uk
    RewriteRule (.*) http://www.dream4mobiles.co.uk/$1 [R=301,L]

    This will then make the www and non www versions of your site look like a unified site, instead of a duplicate/mirror.
    The hosting company i use requires that all files are uploaded to a htaccess file, how do i go about including the rewriteEngine etc? is it as simple as placing the code into a notepad file and uploading?

    Ive just read that This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled. Im currently using a windows based server.

  9. #9
    Super Moderator

    Status
    Online
    Join Date
    Aug 2003
    Location
    Worcestershire
    Posts
    770
    Thanks
    7
    Thanked 15 Times in 14 Posts
    You may need to contact Fasthosts and ask them to make the changes on the Windows server.
    Pete

  10. #10
    Dazza30's Avatar
    Registered User

    Status
    Offline
    Join Date
    Mar 2006
    Location
    cheshire uk
    Posts
    1,141
    Thanks
    79
    Thanked 43 Times in 33 Posts
    Quote Originally Posted by Pete Taylor View Post
    You need to set up a .htaccess file in your root directory and include the following 3 lines.

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^dream4mobiles.co.uk
    RewriteRule (.*) http://www.dream4mobiles.co.uk/$1 [R=301,L]

    This will then make the www and non www versions of your site look like a unified site, instead of a duplicate/mirror.


    So i need to ask fasthosts to do the above for me?

    I just read on another forum that this works

    meta http-equiv="refresh" content="1; url=http://www.domain_name.tld/"

  11. #11
    Super Moderator

    Status
    Online
    Join Date
    Aug 2003
    Location
    Worcestershire
    Posts
    770
    Thanks
    7
    Thanked 15 Times in 14 Posts
    Fasthosts should be able to do it for you. However, looking at Google, you don't appear to have a problem, as they are only indexing your www version.

    I personally wouldn’t attempt to fix something that isn't broke!


    If you were on a Linux server, fair enough, make the changes as a "nice to have" fix, but don't beat yourself over the head fixing a problem that is not evident in the first instance on your site.
    Pete

  12. #12
    Dazza30's Avatar
    Registered User

    Status
    Offline
    Join Date
    Mar 2006
    Location
    cheshire uk
    Posts
    1,141
    Thanks
    79
    Thanked 43 Times in 33 Posts
    I suppose i should put it down as one of those interesting things you learn a day.


    This did spook me though as i hadnt heard of a 301 redirect untill today

    Permanent Redirect Not Found
    Search engines may think www dream4mobiles.co.uk and dream4mobiles.co.uk 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.

    At least ive learnt something new

    Thanks for your assistance

  13. #13
    Registered User

    Status
    Offline
    Join Date
    Jun 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Bit of a thread revival but I want to know if Fasthosts configure this or whether I need the htaccess file or meta tag method. My site is definitely separated into gazoomy.com and Gazoomy - Google Themes / Google Background Wallpaper, and I've noticed my addthis analytics are divided between the two.

  14. #14
    Dazza30's Avatar
    Registered User

    Status
    Offline
    Join Date
    Mar 2006
    Location
    cheshire uk
    Posts
    1,141
    Thanks
    79
    Thanked 43 Times in 33 Posts
    Quote Originally Posted by LotteMae View Post
    Bit of a thread revival but I want to know if Fasthosts configure this or whether I need the htaccess file or meta tag method. My site is definitely separated into gazoomy.com and Gazoomy - Google Themes / Google Background Wallpaper, and I've noticed my addthis analytics are divided between the two.
    If you're using shared hosting Fasthosts won't do anything, and you'll have to use the meta tag method which works fine.

  15. #15
    pustema's Avatar
    Registered User

    Status
    Offline
    Join Date
    Oct 2009
    Location
    4 now Israel
    Posts
    440
    Thanks
    34
    Thanked 18 Times in 15 Posts
    Q1, how can you check to see if Google sees 2 versions

    Q2, how is Google given it's almost unimaginable resources not smart enough to realise they are the same site?

+ Reply to Thread
Page 1 of 2 1 2 LastLast


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 08-07-08, 02:56 PM
  2. Replies: 2
    Last Post: 23-04-08, 02:26 PM
  3. 301 Redirect
    By seekituk in forum Affiliate Marketing Lounge
    Replies: 3
    Last Post: 15-04-07, 02:40 PM
  4. How many 301 redirects is too many?
    By smn2 in forum Programming
    Replies: 2
    Last Post: 25-10-06, 06:09 PM
  5. Permanent redirects (301) in Google
    By darrenw in forum Programming
    Replies: 3
    Last Post: 17-04-04, 09:47 PM

Bookmarks

Posting Permissions

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

Content Relevant URLs by vBSEO 3.5.0 RC2