LuperCortes85

出自 女性百科
前往: 導覽搜尋

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

If you have to move a website from 1 domain to yet another, it will imply that all the links pointing to your old site would now be lost and would generate the dreaded 404 error when guests came in through old search engine listing or links.

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

In this instance, we are going to assume that we use to have a domain called OLDSITE.COM and for some reason we have to move every thing across to NEWSITE.COM

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

A 301 redirect basically tells search engines that pay a visit to your website that the old URL has now permanently altered to another URL. When the search engines find the 301 redirect they will start off to convert all the old links in their index across to the new location.

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

An .htaccess file is nothing 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 attained by going Start off->Accessories->Notepad) and edit your current .htaccess file or to create a new one particular. DONT use Word or any other word processing computer software to open the file, because these packages have the horrible habit of inserting funny characters in file that will lead to the .htaccess file to not function properly.

If your new sites structure is exactly the identical as the old website, then basically place the following line in your .htaccess file

Redirect 301 conserve the file, and FTP this file up into your websites primary 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 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 entire site from 1 domain to one more

If the structure of the new internet site is different from the old one, then we will need to map every old URL to its corresponding new place. This also applies if you choose to adjust the structure of your internet site, and you want to preserve the links 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-instruction.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-place is the total path to final destination (it need to incorporate the totally certified domain name as properly).

This indicates 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/info/dog-instruction.html)

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

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