WordPress.org

Ready to get started?Download WordPress

Forums

Google News Sitemap Generator
how to move the sitemap to the root from a subdirectory? (2 posts)

  1. cesarino
    Member
    Posted 3 years ago #

    hi.

    I've installed the plugin and it seems to work properly.

    As from the title, my wp installation is in a subdirectory and the plugin puts the sitemap in that subdirecory.

    How can I set this plugin to automatically save the sitemap in the root?

    thanks

  2. gingerdog
    Member
    Posted 2 years ago #

    $_SERVER['DOCUMENT_ROOT'] would probably be the right place to put it -

    ie.. editing the line which is $xmlFile = .... to be

    $xmlFile = $_SERVER['DOCUMENT_ROOT'] . '/google-news-sitemap.xml';
    $fp = fopen($xmlFile, ........

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic