Support » Plugin: Google News Sitemap Generator » how to move the sitemap to the root from a subdirectory?

  • cesarino

    (@cesarino)


    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

Viewing 1 replies (of 1 total)
  • $_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, ……..

Viewing 1 replies (of 1 total)
  • The topic ‘how to move the sitemap to the root from a subdirectory?’ is closed to new replies.