WattersMcgann633

From eplmediawiki
Jump to: navigation, search

The greatest way to preserve your links, and have visitors finish up on their necessary page is to setup a redirect from the old domain to the new 1.

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

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

In this instance, we are going to assume that we use to have a domain named OLDSITE.COM and for some purpose 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 guests from the old internet site to the new website.

A 301 redirect just tells search engines that check out your website that the old URL has now permanently changed to yet another URL. Once the search engines uncover the 301 redirect they will start to convert all the old links in their index across to the new place.

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

An .htaccess file is nothing much more than a simple text file that consists of instructions for the web server that run on that hosting account.

On your Pc, start a copy of NOTEPAD (This can be achieved by going Start off->Accessories->Notepad) and edit your current .htaccess file or to develop a new one particular. DONT use Word or any other word processing software program to open the file, since these packages have the horrible habit of inserting funny characters in file that will trigger the .htaccess file to not function appropriately.

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

Redirect 301 save the file, and FTP this file up into your websites major 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 looking for a file named 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 entire site from 1 domain to an additional

If the structure of the new internet site is diverse from the old 1, then we will need to map each and every old URL to its corresponding new place. This also applies if you make a decision to modify 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 visitors to www.newsite.com/info/dog-education.html you would spot the following in your .htaccess file.

Redirect 301 /dogtraining/ format is:

Redirect 301 old-location new-location

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

The new-place is the full path to final destination (it should include the totally certified domain name as well).

This implies that when every single 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-education.html)

If you have numerous places that you want to redirect, then you have to have several redirects set up. With one particular redirect per line. An instance may possibly appear like this:

Redirect 301 /dogtraining/ 301 /policedogtraining/ 301 /dogtrainingvideos/ is time consuming setting up 301 redirect, but if your site had useful incoming links, then its worth spending the time to preserve those links and preserve your web site ranking as properly as it used to and to hold your internet site lucrative. multiple ssl

Personal tools
Namespaces

Variants
Actions
Navigation
extras
Toolbox