When using the site map on the Godaddy host, the system prompts that the permission is insufficient.

Source: Internet
Author: User
Tags generator php file

 

Generally, it is okay to install baidu site map (baidu-sitemap-generator) and google site map (google-xml-genrator) on wordpress.

If you use the Godaddy host like me, install and enable it directly.

An error occurs when you write the sitemap file. Ensure that this file exists and can be written. "

This indicates that the site map plug-in cannot find the sitemap path and cannot perform read/write operations on it. We need to customize the sitemap path.

Google site map custom sitemap path

Solution 1:

Use the debug function of Google site map to find [DOCUMENT_ROOT] and find the corresponding path.

Enter "custom sitemap location" in the Google site map.

Solution 2:

Upload the path. Php file (download) to the root directory of your website, open it in the browser, copy the displayed path, and enter "custom sitemap location"

Baidu site map custom sitemap path

Obtain the [DOCUMENT_ROOT] path in the same way and edit the Baidu Sitemap Generator plug-in code.

Set LCZ_GetHomePath to the above path and save it.

 

Now generate a site map to see if the site map is successfully generated?

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.