GrimaldiHoskinson902

来自NoteExpress知识库
2015年6月10日 (三) 00:21GrimaldiHoskinson902讨论 | 贡献的版本

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

The simplest way to keep your links, and have readers end-up on their expected page is to setup a direct from the old area to the new one. It will mean that each of the links pointing to your old website would now be lost and would create the dreaded 404 error when visitors came in via old internet search engine list or links, If you have to maneuver a website from area to still another. The simplest way to maintain your links, and have readers wind up o-n their necessary page is to setup a redirect from the old area to the new one. In this case, we are going to believe that we use to have a domain called OLDSITE.COM and for some reason weve to move anything across to NEWSITE.COM The initial up, dont kill the hosting for the old site but keep it running for sometime. This will then allow us to direct visitors from-the old site to the new site. 30-1 redirect basically shows search-engines that visit your website that the old URL has permanently changed to a different URL. Once the search engines find the 301 redirect they will begin to convert all the old links in their list across to-the new area. This can take time and on-site web sites, this may take weeks to have the various search engines change all the old links across to-the new areas. An.htaccess file is nothing more than a simple text file that contains instructions for the web server that run on that hosting account. On your personal computer, begin a copy of NOTEPAD This can be accomplished by going Start-Accessories-Notepad and edit your existing.htaccess file or to create a new one. Navigating To big joe maybe provides warnings you could use with your co-worker. DONT use Word or any other word pro-cessing pc software to open the file, because these packages have the practice of inserting funny characters in file that can cause the.htaccess file never to function effectively. If your new sites construction is precisely just like the previous site, then simply place the following line-in your.htaccess document Direct 30-1 http://www.NEWSITE.COM Now save yourself the file, and FTP this file up into your sites primary bill. This grand kids bean bag URL has uncountable striking warnings for the purpose of it. On most Linux-based systems, this is the /public_html/ index Now, every time a customer be it an individual or even a internet search engine robot comes to your old area, they will be direct to your site. So if they came buying document 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 actually the easiest way to move a whole site in one domain to another If the construction of the new site is different from your old one, then well need to map each old URL to its corresponding new area. This applies if you choose to change the structure of ones site, and you need to maintain the links from your own old structure and map them to their new place. You desired to direct visitors to www.newsite.com/info/dog-training.html and if you have an URL that has been www.oldsite.com/dogtraining/ you would place the following in your.htaccess document. Redirect 30-1 /dogtraining/ http://www.newsite.com/info/dog-training.html The structure is: Direct 301 old-location new-location The old-location is the way to the spot minus the domain name The new-location may be the complete path to ultimate destination it must include the fully qualified domain-name too. Which means that when every a customer is available in around the previous URL www.oldsite.com/dogtraining/ the web server can direct them to the new URL of www.newsite.com/info/dog-training.html If youve multiple areas that you need to re-direct, then you have to have multiple blows set up. With one redirect per line. An example may look like this: Direct 30-1 /dogtraining/ http://www.newsite.com/info/dog-training.html Re-direct 30-1 /policedogtraining/ http://www.newsite.com/info/police-dog-training.html Redirect 30-1 /dogtrainingvideos/ http://www.newsite.com/info/dog-training-videos.html It is time consuming creating 301 re-direct, but when your site had important incoming links, then its worth investing the time to keep your site successful and keep your site position together with it used to and to maintain these links.. Clicking Redirecting web traffic to a new place 27929 – WAdmin perhaps provides lessons you might use with your uncle.