Google XML Sitemaps
IIS7 Rewrite rules (1 post)

  1. nootron
    Posted 5 years ago #

    Im not sure if this has been posted yet, but I wanted to pass the rewrite rules for those using IIS7+ as this plugin doesn't seem to generate them itself.

    <rule name="Google Xml Sitemap 1" stopProcessing="true">
        <match url="^sitemap-?([a-zA-Z0-9\-_]+)?\.xml$" ignoreCase="true"/>
        <action type="Rewrite" url="index.php?xml_sitemap=params={R:1}" appendQueryString="false"/>
    <rule name="Google Xml Sitemap 2" stopProcessing="true">
        <match url="^sitemap-?([a-zA-Z0-9\-_]+)?\.xml\.gz$" ignoreCase="true"/>
        <action type="Rewrite" url="index.php?xml_sitemap=params={R:1};zip=true" appendQueryString="false"/>
    <rule name="Google Xml Sitemap 3" stopProcessing="true">
        <match url="^sitemap-?([a-zA-Z0-9\-_]+)?\.html$" ignoreCase="true"/>
        <action type="Rewrite" url="index.php?xml_sitemap=params={R:1};html=true" appendQueryString="false"/>
    <rule name="Google Xml Sitemap 4" stopProcessing="true">
        <match url="^sitemap-?([a-zA-Z0-9\-_]+)?\.html.gz$" ignoreCase="true"/>
        <action type="Rewrite" url="index.php?xml_sitemap=params={R:1};html=true;zip=true" appendQueryString="false"/>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google XML Sitemaps
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic