Problem With 301 Redirect

Discussion in 'Search Engine Optimization' started by cashgen, Aug 12, 2010.

  1. #1
    Hi Folks,

    I have been using 301 redirect for many months now to redirect my old site/domain
    http://www.top-home-biz.ws to my new site/domain http://www.homebiz-supermarket.com

    However, very lately, i removed the redirect to enable me carry out verification of my old site as required by Google. Since then, i have been unable to fix the redirect back. Probably i am missing something in the code.

    Can someone please take a second look. The code i use to redirect on my .htaccess file which i place in the root directory of my old website alongside a created index.html file, is

    Redirect 301 / http://www.homebiz-supermarket.com/

    I create the .htaccess file with notepad to avoid any errors. All the above is what i have always done many times before that worked on the same websites and i don't just know what the problem is this time around.

    My old website is just showing a blank screen despite insertion of the .htaccess file i.e. not redirecting
     
    cashgen, Aug 12, 2010 IP
  2. karpok

    karpok Active Member

    Messages:
    325
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
    The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.homebiz-supermarket.com/$1 [R=301,L]
     
    karpok, Aug 12, 2010 IP
  3. seo4me

    seo4me Well-Known Member

    Messages:
    209
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    123
    #3
    Correct!
    Just check you place this file in correct position!
     
    seo4me, Aug 13, 2010 IP
  4. theemerchant

    theemerchant Guest

    Messages:
    185
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    theemerchant, Aug 13, 2010 IP
  5. cashgen

    cashgen Well-Known Member

    Messages:
    128
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #5
    Thank you guys,

    But i tried the codes supplied by karpok and theemerchant and yet it was the same blank index page for http://www.top-home-biz.ws that remained (not redirecting).

    I am thinking this may have nothing to do with the code being wrong since i have always used the code i indicated above and it had always worked.

    The confusing thing is that what can be wrong?
     
    cashgen, Aug 13, 2010 IP
  6. karpok

    karpok Active Member

    Messages:
    325
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Kindly check with ur hosting service provider that u have access to .htaccess or not.

     
    karpok, Aug 17, 2010 IP
  7. cashgen

    cashgen Well-Known Member

    Messages:
    128
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #7
    Thank you karpok,

    I have access since this is not the first time i am inserting the relevant code into .htaccess file for that domain/website.

    I removed it myself a few weeks ago when i wanted to verify ownership of the domain/website to Google since Google insisted there has to be no redirect on the domain.

    At any rate, i have now gotten across to my host provider and they have sorted it out for me.

    The domain is now redirecting.

    Thank you once again.
     
    cashgen, Aug 18, 2010 IP