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

  1. cesarino
    Posted 5 years ago #


    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?


  2. gingerdog
    Posted 4 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

  • Google News Sitemap Generator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic