Redirect all Traffic with htaccess
Moving a site to a new location can mean leaving a lot of broken links behind. However, you can use the “magic” of htaccess to redirect all traffic to your new site. Simply create a new text file in your favorite editor and paste in the following line:
ErrorDocument 404 http://www.example.com/
Of course, you’ll have to replace the “example.com” address with whatever page you’re trying to redirect the visitor to. Then, all you have to do is save the file as “.htaccess” and upload it to the folder where your site used to be. That’s it! You can read more about htaccess if you like, but it’s pretty heady stuff, I must say.