WordPress.org

Forums

WordPress SEO by Yoast
Mention XML in .htacces? (2 posts)

  1. Willem-Siebe
    Member
    Posted 2 years ago #

    Hi Joost,

    I read this article about putting xml sitemap location inside .htacces.

    < IfModule mod_alias.c >
    RedirectMatch 301 /sitemap\.xml$ http://your-site.com/sitemap.xml
    RedirectMatch 301 /sitemap\.xml\.gz$ http://your-site.com/sitemap.xml.gz
    < /IfModule >

    It looks like this is hurting (maybe) improving SEO in addition to your XML function (autogenerate) and ping to searchengines.

    Hope to hear from you if I can do this.

    Kind regards, Willem

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. Willem-Siebe
    Member
    Posted 2 years ago #

    HI there,

    It has been two months. THe word HURTING was not right ofcourse, so the question is:

    It looks like this is (maybe) improving SEO in addition to your XML function (autogenerate) and ping to searchengines.

    All I want to know if it is really a good idea to put these lines of code in my .htacces...

    Kind regards,

    Willem

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress SEO by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.