Index.php

From Recidemia
Revision as of 09:57, 19 March 2013 by 173.237.181.16 (talk)
Jump to: navigation, search

The greatest way to preserve your hyperlinks, and have visitors end 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 internet site from one domain to an additional, it will imply that all the hyperlinks pointing to your old web site would now be lost and would produce the dreaded 404 error when visitors came in by means of old search engine listing or links.

The very best way to preserve your hyperlinks, and have guests end up on their needed 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 known as OLDSITE.COM and for some cause we have to move almost everything across to NEWSITE.COM

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

A 301 redirect simply tells search engines that pay a visit to your site that the old URL has now permanently changed to another URL. As soon as the search engines find the 301 redirect they will begin to convert all the old links in their index across to the new location.

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

An .htaccess file is practically nothing much more than a straightforward text file that contains directions for the web server that run on that hosting account.

On your Pc, begin a copy of NOTEPAD (This can be achieved by going Commence->Accessories->Notepad) and edit your current .htaccess file or to generate a new one particular. DONT use Word or any other word processing application to open the file, since 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 sites structure is precisely the very same as the old website, then just spot the following line in your .htaccess file

Redirect 301 save the file, and FTP this file up into your sites 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 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 website from one domain to one more

If the structure of the new internet site is diverse from the old a single, 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 website, 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/info/dog-instruction.html you would spot 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 location (minus the domain name)

The new-location is the full path to final destination (it need to contain the fully qualified domain name as well).

This means that when every 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 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 well 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 those hyperlinks and maintain your web site ranking as well as it employed to and to maintain your internet site profitable. multiple domain certificate