Viewing 7 replies - 1 through 7 (of 7 total)
  • Arne

    (@arnee)

    Hi,

    the sitemap changed from a static file to a WordPress generated page, since the static files always caused problems with permissions and so on. So location on /blog/sitemap.xml is fine, why you want to change it?

    Thread Starter SLM66

    (@slm66)

    Hi,

    because all search engines know the sitemap since the site is online (5 years) in the root directory. The blog is subordinate. However, the sitemap includes all static pages of the mainpage.

    Arne

    (@arnee)

    I see! Unfortunately since the sitemap.xml is generated by WordPress, it can not be outside the WordPress directory. At least not easily, but I will thinking about this.

    In the meantime, you could save the sub-sitemap with the static pages (sitemap-externals.xml) and put it in your root via FTP. Submit this one separately in Google Webmaster Tools and it will also be picked up 🙂

    Arne

    (@arnee)

    Wait before you do it, I found a quite simple way. I will check if I can add this to the next version. Are you using Apache Web Server?

    Arne

    (@arnee)

    Please test:

    Download the new test version:

    http://downloads.wordpress.org/plugin/google-sitemap-generator.zip

    Open your wp-config.php and add this:

    define("SM_BASE_URL","http://www.your-blog.com/");

    Add this to your .htaccess file in your domain directory (at the beginning, create one if it does not exist):

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^sitemap(-+([a-zA-Z0-9_-]+))?\.xml(\.gz)?$ /your-blogdir/sitemap$1.xml$2 [L]
    </IfModule>

    Please let me know if you need any assistance!

    Thread Starter SLM66

    (@slm66)

    Vielen Dank, das funktioniert wunderbar.

    Zuerst dachte ich, dass die externen Links fehlen, aber dann hab ich bemerkt, dass jetzt verschiedene Sitemaps erstellt werden, z.B. die /blog/sitemap-externals.xml

    Die Funktion, dass man die sitemap manuell erstellt braucht es dann gar nicht mehr wahrscheinlich?

    Arne

    (@arnee)

    Genau, das manuelle Erstellen entfällt jetzt!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘set sitemap path manually does not longer work’ is closed to new replies.