CaskeyFabian895

出自 女性百科
於 2013年4月12日 (五) 19:18 由 CaskeyFabian895 (對話 | 貢獻) 所做的修訂 (新页面: The easiest way to maintain your links, and have readers end up on their expected page is to setup a direct from the old site to the new one. When you have to maneuver a website from on...)

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

The easiest way to maintain your links, and have readers end up on their expected page is to setup a direct from the old site to the new one.

When you have to maneuver a website from one site to another, it will mean that all the links pointing to your old website would now be lost and would produce the dreaded 404 error when visitors came in via old internet search engine list or links.

The easiest way to preserve your links, and have visitors wind up on their required page is to setup a redirect from the old domain to the new one.

In this case, we're going to believe that we use to have a site called OLDSITE.COM and for reasons uknown we have to move everything across to NEWSITE.COM

The initial up, dont kill the hosting for the old site but keep it running for sometime. This can then allow us to direct visitors from the old site to the new site.

A 301 direct only tells search-engines that visit your site that the old URL has now permanently changed to another URL. Once the search-engines find the 301 direct they'll begin to transform all the old links within their index across to the brand new place.

This can take sometime and on site internet sites, this may take weeks to really have the search-engines convert most of the previous links across to the brand new places.

An.htaccess file is only a simple text file that contains instructions for the web server that operate on that hosting account.

On your PC, begin a of NOTEPAD (This is attained by planning Start-> Accessories-> Notepad) and revise your existing.htaccess file or to create a new one. DONT use Word or some other word processing application to open the file, since these packages have the horrible habit of putting interesting characters in file that will cause the.htaccess file not to function properly.

If your new sites structure is exactly just like the old site, then simply place the next line in your.htaccess file

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

Now, every time a customer (be it an individual or a search engine robot) comes to your old area, they will be direct 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 immediately redirected to www.newsite.com/stuff.html

This is the easiest way to move a whole site in one site to a different

Then we shall need certainly to map each old URL to its corresponding new area, if the structure of the new site is significantly diffent from the old one. This applies if you choose to change the structure of one's website, and you need to preserve the links from your old structure and place them with their new location.

You desired to redirect visitors to www.newsite.com/info/dog-training.html and if you've a URL that was www.oldsite.com/dogtraining/ you would place the following in your.htaccess file.

Direct 301 /dogtraining/ structure is:

Redirect 301 old-location new-location

The old-location could be the way to the old spot (without the domain name)

The new-location is the full way to final destination (it should are the fully qualified domain name as well).

Which means when every a visitor comes in on the previous URL (www.oldsite.com/dogtraining/) the net server will direct them to the newest URL of (www.newsite.com/info/dog-training.html)

You have to have multiple blows put up if you've multiple areas that you desire to redirect, then. With one direct per line. An example may seem like this:

Redirect 301 /dogtraining/ 301 /policedogtraining/ 301 /dogtrainingvideos/ is time consuming establishing 301 redirect, but if your site had valuable incoming links, then its worth investing the time to keep these links and keep your site position as well as it used to and to keep your site lucrative. SetserPearce503 - WikIBedia