Redirecting web-traffic to your new location
De BISAWiki
The easiest way to maintain your links, and have guests end-up on their expected page is to setup a redirect from the old area to the new one.
It'll mean that each of the links pointing to your old site would now be lost and would make the dreaded 404 error when visitors came in via old search engine list or links, when you have to move a website from one domain to still another.
The best way to keep your links, and have visitors end up o-n their essential page is to setup a direct from the old area to the new one.
In this example, we are going to assume that we use to have a website called OLDSITE.COM and for whatever reason we have to move anything across to NEWSITE.COM
The first up, dont kill the hosting for the old site but leave it working for a while. This will then allow us to direct visitors from the old site to the new site.
A 301 re-direct simply tells search-engines that visit your site that the old URL has now completely changed to some other URL. They will start to transform all the old links in their list across to the new place once the search engines find the 301 direct.
This can take some time and on site sites, this may take months to have the search engines transform most of the old links across to-the new places.
An.htaccess file is nothing more than a simple text file that contains instructions for your web server that operate on that hosting account.
On your PC, begin a copy of NOTEPAD (This is accomplished by going Start->Accessories->Notepad) and revise your existing.htaccess file or even to produce a new one. Since these packages have the horrible practice of inserting funny characters in file that will cause the.htaccess file to not function properly, dont use Word or some other word pro-cessing software to open the file.
If your new sites structure is precisely the same as the previous site, then simply place the following line-in your.htaccess report
Direct 30-1 http://www.NEWSITE.COM
Now save your self the file, and FTP this file up in to your web sites major consideration. Of all Linux based systems, this is the service
Now, each time a customer (be it a human or a search engine bot) comes to your old area, they'll be re-direct to your new site. Www.Nickvassilev.Com/ contains further concerning the meaning behind it. So if they came buying document called stuff.html (old URL would be www.oldsite.com/stuff.html) they'd get immediately redirected to www.newsite.com/stuff.html
This is the simplest way to move a complete site from site to another
If the structure of the new site differs from your old one, then we shall have to guide each old URL to its corresponding new area. This also applies if you choose to change the structure of the site, and you need to preserve the links from your old structure and guide them with their new location.
If you've an URL that has been www.oldsite.com/dogtraining/ and you wished to redirect visitors to www.newsite.com/info/dog-training.html you'd place the following within your.htaccess document.
Re-direct 301 /dogtraining/ http://www.newsite.com/info/dog-training.html
The structure is:
Redirect 30-1 old-location new-location
The old-location may be the way to the destination (without the domain name)
The new-location will be the complete road to ultimate destination (it must range from the fully qualified domain name too).
Which means when every a guest is available in around the old URL (www.oldsite.com/dogtraining/) the net server can re-direct them to the new URL of (www.newsite.com/info/dog-training.html)
If you've multiple areas that you wish to re-direct, then you have to have multiple blows create. With one redirect per line. A good example may look like this:
Direct 30-1 /dogtraining/ http://www.newsite.com/info/dog-training.html
Direct 301 /policedogtraining/ http://www.newsite.com/info/police-dog-training.html
Re-direct 30-1 /dogtrainingvideos/ http://www.newsite.com/info/dog-training-videos.html
It is time consuming establishing 30-1 re-direct, but if your site had important incoming links, then its worth spending the time to keep these links and keep your website standing together with it used to and to keep your site worthwhile.