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
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]
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?
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.