help needed with 301 redirect

Discussion in 'Apache' started by jasonasbhy, Apr 13, 2006.

  1. #1
    Google has idexed both my website domian and the pages on the server I.E

    www.ukflooringdirect.co.uk and also

    http://server11.sitewizard.co.uk/sites/ukflooring

    these are both the same pages and are at the same location on the server.

    Google found the server11 because when the company doing my website added extra pages the left the address as server11....... instead of part of my domain name.

    Google has now found serveral of the pages on the server and these have replaced my rankings in the serps. My domain name rankings have vertually dropped out when most where in the top 10.

    My concern is that google will see this as duplicate content.

    I have asked the company to do a 301 redirect and this is the response i got.

    This redirect will not work, the 301 redirect is used if the "server11.sitewizard.co.uk/sites/ukflooring" and "www.ukflooringdirect.co.uk" were stored on totally different locations(i.e on different servers).

    The redirect you supplied us with would just make the redirects go in an endless loop as the 2 urls are in exactly the same location on exactly the same server.

    If you can email me a .htaccess redirect that for example could redirect ukflooringdirect.co.uk to www.ukflooringdirect.co.uk on the same server, we can try to help you out abit more.

    We have loads of clients who have sites held on the that server who have achieved high ranking without any sort of redirect (where the server11...
    and actual domain name are in place).


    i even did all the work and sent them all the code for the 301 redirect and example was.

    redirect 301 /server11.sitewizard.co.uk/sites/ukflooring/quick_step_laminate_flooring.htm http://www.ukflooringdirect.co.uk/quick_step_laminate_flooring.htm


    I need advise please as i am worried i will get penalized by google and lose my rankings
     
    jasonasbhy, Apr 13, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    server11.sitewizard.co.uk/.htaccess

    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^([^.]+)$ http://www.ukflooringdirect.co.uk/$1 [R=301,L]
     
    Nintendo, Apr 13, 2006 IP
  3. jason.ashby

    jason.ashby Peon

    Messages:
    27
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the reply but i am still confused. Do i just copy this into the htaccess file.

    Do i need to change anything or add anything to it.
     
    jason.ashby, Apr 13, 2006 IP
  4. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #4
    Give the code to your web host. They'll know what to do with it. That's what you have for .htaccess.
     
    Nintendo, Apr 13, 2006 IP
  5. Jean-Luc

    Jean-Luc Peon

    Messages:
    601
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #5
    To prevent the same problem, i am using this version of .htaccess placed in my top level directory:
    Options +FollowSymlinks
    RewriteEngine on 
    RewriteCond %{HTTP_HOST} !^www.ukflooringdirect.co.uk$ 
    RewriteRule ^(.*)   http://www.ukflooringdirect.co.uk/$1  [QSA,L,R=301]
    RewriteRule ^\/sites\/ukflooring\/(.*)   http://www.ukflooringdirect.co.uk/$1  [QSA,L,R=301]
    Code (markup):
    Jean-Luc
     
    Jean-Luc, Apr 13, 2006 IP
  6. jason.ashby

    jason.ashby Peon

    Messages:
    27
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thanks both for the reply i will pass it on Tuesday after the Easter Holiday and let you know how it goes.

    Thanks for taking time to help me out
     
    jason.ashby, Apr 14, 2006 IP