HumphreysEdward641

From Army of Gnomes Wiki
Jump to: navigation, search

The very best way to preserve your links, and have guests finish up on their required web page is to setup a redirect from the old domain to the new one particular.

If you have to move a internet site from 1 domain to another, it will mean that all the links pointing to your old web site would now be lost and would generate the dreaded 404 error when visitors came in through old search engine listing or hyperlinks.

The ideal way to preserve your links, and have visitors finish up on their required web page is to setup a redirect from the old domain to the new one particular.

In this instance, we are going to assume that we use to have a domain named OLDSITE.COM and for some cause we have to move almost everything across to NEWSITE.COM

The first up, dont kill the hosting for the old website but leave it operating for some time. This will then enable us to redirect visitors from the old site to the new site.

A 301 redirect simply tells search engines that visit your site that the old URL has now permanently changed to one more URL. As soon as the search engines find the 301 redirect they will start to convert all the old hyperlinks in their index across to the new place.

This will take some time and on web site web sites, this could take months to have the search engines convert all the old hyperlinks across to the new locations.

An .htaccess file is nothing far more than a basic text file that contains instructions for the internet server that run on that hosting account.

On your Pc, start a copy of NOTEPAD (This can be accomplished by going Commence->Accessories->Notepad) and edit your existing .htaccess file or to produce a new one. DONT use Word or any other word processing application to open the file, due to the fact these packages have the horrible habit of inserting funny characters in file that will lead to the .htaccess file to not function correctly.

If your new websites structure is exactly the identical as the old website, then simply location the following line in your .htaccess file

Redirect 301 save the file, and FTP this file up into your sites principal account. On most Linux based systems, this is the /public_html/ directory

Now, whenever a visitor (be it a human or a search engine bot) comes to your old domain, they will be redirect to your new web site. So if they came searching for a file called stuff.html (old URL would be www.oldsite.com/stuff.html) they would get automatically redirected to www.newsite.com/stuff.html

This is the easiest way to move an whole site from one particular domain to an additional

If the structure of the new internet site is different from the old 1, then we will want to map every single old URL to its corresponding new place. This also applies if you choose to adjust the structure of your web site, and you want to preserve the links from your old structure and map them to their new place.

If you have a URL that was www.oldsite.com/dogtraining/ and you wanted to redirect guests to www.newsite.com/information/dog-training.html you would place the following in your .htaccess file.

Redirect 301 /dogtraining/ format is:

Redirect 301 old-place new-location

The old-location is the path to the old destination (minus the domain name)

The new-location is the complete path to final location (it should include the totally certified domain name as nicely).

This signifies that when each and every a visitor comes in on the old URL (www.oldsite.com/dogtraining/) the net server will redirect them to the new URL of (www.newsite.com/info/dog-training.html)

If you have numerous areas that you want to redirect, then you have to have multiple redirects set up. With one particular redirect per line. An example may possibly look like this:

Redirect 301 /dogtraining/ 301 /policedogtraining/ 301 /dogtrainingvideos/ is time consuming setting up 301 redirect, but if your web site had worthwhile incoming links, then its worth spending the time to preserve these links and keep your internet site ranking as nicely as it used to and to preserve your web site lucrative. server certificate

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox