Ecshop optimizes the modification of sitemap. XML to the root directory

Source: Internet
Author: User

As we all know, sitemap. XML is a tool used to submit indexed information for search engines. Although the search engine itself will also include websites, the speed will be much faster after sitemap. XML is available. The token is not reasonable, so we need to modify it to the root directory! This will make Baidu and Google prefer our website

Step 1: find... /Admin/sitemap. php open

Change $ sm_file = '../'. data_dir. '/sitemaps. xml' to $ sm_file =' ../sitemaps. xml ';

Step 2: Continue to upload allSitemaps. xmlChangeSitemap. xmlBecause Google only recognizesSitemaps. xml

Step 3: Create an empty sitemap. xml file in the root directory and put it in the root directory of your website. Then you can modify sitemap in robots.txt.

Sitemap: http://www.ecmoban.com/sitemap.xml

Step 4: Modify the language prompt (this can not be done, because only you can see it)

In the file: Ages/zh_cn/admin/sitemap. php, the site map $ _ Lang ['generate _ SUCCESS '] =' has been generated under the Data Directory. <Br/> the address is % s'. Replace it with $ _ Lang ['generate _ SUCCESS '] ='. The site map has been generated under the root directory of your website. <Br/> the address is % S. After the operation is complete, click the site map in the background.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.