ConferSaiz778

From Army of Gnomes Wiki
Jump to: navigation, search

The most beneficial way to preserve your hyperlinks, and have guests finish up on their required page is to setup a redirect from the old domain to the new a single.

If you have to move a site from one domain to an additional, it will mean that all the hyperlinks pointing to your old web site would now be lost and would generate the dreaded 404 error when guests came in by means of old search engine listing or hyperlinks.

The right way to preserve your hyperlinks, and have guests finish up on their needed web page is to setup a redirect from the old domain to the new one.

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

The very first up, dont kill the hosting for the old site but leave it operating for some time. This will then permit us to redirect guests from the old web page to the new web site.

A 301 redirect merely tells search engines that visit your website that the old URL has now permanently changed to a different URL. As soon as the search engines obtain the 301 redirect they will start to convert all the old links in their index across to the new location.

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

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

On your Computer, start a copy of NOTEPAD (This can be achieved by going Begin->Accessories->Notepad) and edit your existing .htaccess file or to make a new a single. DONT use Word or any other word processing application to open the file, as a result of these packages have the horrible habit of inserting funny characters in file that will cause the .htaccess file to not function appropriately.

If your new internet sites structure is specifically the same as the old internet site, then basically spot the following line in your .htaccess file

Redirect 301 save the file, and FTP this file up into your websites principal 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 web-site. So if they came hunting for a file known 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 website from one particular domain to one other

If the structure of the new webpage is totally different from the old a single, then we will need to have to map each old URL to its corresponding new place. This also applies if you determine to alter the structure of your site, and you want to preserve the hyperlinks from your old structure and map them to their new location.

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-location new-place

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

The new-location is the full path to final location (it will have to contain the totally certified domain name as well).

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

If you have many areas that you want to redirect, then you have to have various redirects set up. With one particular redirect per line. An example may appear like this:

Redirect 301 /dogtraining/ 301 /policedogtraining/ 301 /dogtrainingvideos/ is time consuming setting up 301 redirect, but if your webpage had worthwhile incoming links, then its worth spending the time to preserve these hyperlinks and hold your web-site ranking as well as it made use of to and to preserve your internet site lucrative. trade show banners

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox