Is sitemap.axd supported by all search engines?

I am currently creating a sitemap file dynamically using HttpHandler, with the path set to sitemap.axd. Then it returns the contents of xml. No one in my office is sure that all search engines accept this extension or they need .xml to parse. I know that I can send it to Google using webmaster tools and use the robots.txt file to indicate that the sitemap is sitemap.axd.

Is sitemap.axd accepted by all? If not, does anyone know which ones will or will not?

+3
source share
2 answers

The protocol, agreed with the major search engines, allows you to specify the location of your XML map in the robots.txt file. In the examples, there is a tendency to name this sitemap.xml file, but any name with or without an extension should work as long as the content in this place is XML.

The MIME type specified in the HTTP response may be required by some search engines to be one of the list of text or xml-ish types.

+3
source

Creating a URL entry for me works with BlogEngine.net sitemap.axd. Therefore, when bots of other others are sent to sitemap.xml, it displays with sitemap.axd

        <rewrite>
                <rules>
                    <rule name="SiteMap" patternSyntax="Wildcard" stopProcessing="true">
                        <match url="sitemap.xml" />
                        <action type="Rewrite" url="sitemap.axd" appendQueryString="false" />
                    </rule>
</rules>
</rewrite>
0
source

Source: https://habr.com/ru/post/1710838/


All Articles