McalpineGrim669

從 女性百科
於 2013年4月11日 (四) 10:00 由 McalpineGrim669 (對話 | 貢獻) 所做的修訂 (新页面: The very best way to preserve your links, and have visitors finish up on their needed page is to setup a redirect from the old domain to the new one. If you have to move a website from o...)

(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
跳到: 導覽搜尋

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

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

The very best way to preserve your links, and have visitors finish up on their necessary 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 referred to as OLDSITE.COM and for some purpose we have to move every little thing 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 enable us to redirect guests from the old website to the new site.

A 301 redirect merely tells search engines that go to your website that the old URL has now permanently changed to one more URL. Once the search engines uncover 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 website web sites, this may possibly take months to have the search engines convert all the old links across to the new locations.

An .htaccess file is nothing at all much more than a basic text file that consists of directions 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 produce a new one particular. DONT use Word or any other word processing software program to open the file, simply because these packages have the horrible habit of inserting funny characters in file that will result in the .htaccess file to not function correctly.

If your new websites structure is precisely the very same as the old website, then basically place the following line in your .htaccess file

Redirect 301 save the file, and FTP this file up into your internet sites main 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 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 entire site from one particular domain to an additional

If the structure of the new site is different from the old one, then we will want to map each old URL to its corresponding new location. This also applies if you decide to change 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/information/dog-training.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 destination (minus the domain name)

The new-place is the full path to final destination (it must incorporate the fully qualified domain name as nicely).

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

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

Redirect 301 /dogtraining/ 301 /policedogtraining/ 301 /dogtrainingvideos/ is time consuming setting up 301 redirect, but if your website had useful incoming links, then its worth spending the time to preserve those links and maintain your site ranking as nicely as it employed to and to maintain your web site profitable. best backlink service