xml sitemap installed on blog getting 301 error?

Discussion in 'WordPress' started by geester1, Apr 15, 2009.

  1. #1
    my site has redirect www.domain dot com/blog and redirects to http://domain.com/blog

    When i submit sitemap to goolg webmaster tools it gives warnings, redirect isnt to final destination - sitemap showing posts as http://domain.com/blog/post

    should be www.domain.com/blog/post What can I do to rectify this?

    I have updated htaccess file, this is below.


    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^(sitemap\.xml|sitemap\.xml\.gz)$ /blog/wp-content/sitemaps/$1 [L]
    </IfModule>

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>

    # END WordPress
     
    geester1, Apr 15, 2009 IP
  2. Big0ne

    Big0ne Well-Known Member

    Messages:
    2,615
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Why do you use redirect after all?

    You could simply move your Wordpress to the /blog folder.

    update: Sorry, it seems I didn't get your question.
     
    Big0ne, Apr 15, 2009 IP
  3. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #3
    The easy answer would be to stop redirecting to the same blog, and just use your natural domain address. It doesn't really have any benefit SEO wise to do so, and Googe suggests in the webmaster tools that you should use the "www", anyway.
     
    hmansfield, Apr 15, 2009 IP