WordPress.org

Ready to get started?Download WordPress

Forums

sitemap.xml and sitemap.xml.gz in google xml sitemap generator (3 posts)

  1. Tara
    Member
    Posted 4 years ago #

    Hi all,

    I am trying to use Goole XML Sitemap generator in my blog.

    The plugin installation guidelines say:

    create two files in your WordPress directory (that's where the wp-config.php is) named sitemap.xml and sitemap.xml.gz and make them writable via CHMOD 666.

    Question: from a security standpoint, is it advisable to have these two files sitting there with 666 permission?

    Please guide thanks

  2. From a strict security standpoint, it would not be advisable to leave those files set to 666. However, write privileges (666) are required in order for the plugin to automatically write changes to the files. Here are two things to consider:

    1. This would only be a risk on poorly configured servers. For a good example of that, research the recent attack on WordPress blogs (and all other PHP scripts) at Network Solutions and GoDaddy.

    2. The plugin completely re-writes the file whenever a new post or an edit is made. If any malicious code were ever injected into the files, it wouldn't be around for long.

  3. Tara
    Member
    Posted 4 years ago #

    hi macmanx.
    Thanks for your help.

    I am new to WP blog. regarding this Plugin if can please help me with this question I have.

    My blog is in subdirectory (i.e, http://www.mysite/blog/)
    This plugin will create sitemaps for the blog in this blog root directory (i.e, http://www.mysite/blog/sitemap.xml, and http://www.sitemap/blog/sitemap.xml.gz.

    I already have my own sitemap.xml file in the root of my domain that contains all other pages of my site other than the Blog (i.e, http://www.mysite/sitemap.xml).

    questions: 1. is it ok to have different sitemaps like this - one in my domain root for pages other than the Blog, and the different ones in the root of the Blog specifically for the blog.

    2. this means, if I use the WP xml sitemap, I will end up with 3 sitemaps files:
    http://www.mysite/blog/sitemap.xml
    http://www.sitemap/blog/sitemap.xml.gz
    http://www.mysite/sitemap.xml

    is it ok to have 3 sitemaps like this? Of course, if ok, I will have to add them to my Google Webmasters Tools.

    Please guide. Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic