NicolettiBeers205

From Army of Gnomes Wiki
Jump to: navigation, search

The ideal way to preserve your hyperlinks, and have guests end up on their required page is to setup a redirect from the old domain to the new one particular.

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

The ideal way to preserve your hyperlinks, and have visitors end up on their required web page is to setup a redirect from the old domain to the new 1.

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

The initial 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 internet site to the new site.

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

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

An .htaccess file is practically nothing more than a basic text file that contains guidelines for the net server that run on that hosting account.

On your Pc, start off a copy of NOTEPAD (This can be achieved by going Start->Accessories->Notepad) and edit your existing .htaccess file or to develop a new 1. DONT use Word or any other word processing application to open the file, because these packages have the horrible habit of inserting funny characters in file that will lead to the .htaccess file to not function properly.

If your new sites structure is precisely the very same as the old site, then simply place the following line in your .htaccess file

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

Now, anytime a visitor (be it a human or a search engine bot) comes to your old domain, they will be redirect to your new internet site. So if they came searching for a file referred to as 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 yet another

If the structure of the new site is various from the old a single, then we will need to map each old URL to its corresponding new location. This also applies if you make a decision to adjust the structure of your website, and you want to preserve the hyperlinks 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/info/dog-instruction.html you would location the following in your .htaccess file.

Redirect 301 /dogtraining/ format is:

Redirect 301 old-place new-place

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

The new-place is the complete path to final location (it must consist of the completely certified domain name as well).

This implies that when each 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/information/dog-training.html)

If you have several areas that you want to redirect, then you have to have a number of redirects set up. With a single 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 site had valuable incoming links, then its worth spending the time to preserve these links and hold your site ranking as effectively as it used to and to maintain your website lucrative. ssl management

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox