Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I had my website on but I had to delete it completely and create a new one in I have redirected all the traffic that is sent to to but when anyone visit, it takes them to a 404 error page provided by the hosting service which in my case is hostgators. I have been searching for a answer for a long time and then one day I visited a blog ( who have their blog directory similar to mine and after some research I found out that,, was initially and after one year they have shifted it to different directory.

Whenever I go to, I get redirected to and when I type something like this after the link, it still gets redirected to Someone told me the other day that "This will only work if you have the same post on the new directory" but i don't think that had any post like this one

share|improve this question

1 Answer 1

up vote 1 down vote accepted

How have you redirected trafic from to

If you have used a .htaccess file, it's easy to do what you want

    //Rewrite to www
    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^[nc]
    RewriteRule ^(.*)$ [r=301,nc]

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)

share|improve this answer
buddy i used the default redirection tool that is available in my cpanel. Anyway, i will try this one. Thanks for your help buddy :) – Mithun Rajput Nov 19 '13 at 8:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.