1

I have an issue with a DNN (DotNetNuke) 07.04.01 site that has no sitemap when I visit domain/sitemap.aspx. This may have been caused by somebody creating a page called sitemap which I have since removed but now the website is giving me a 404 response instead of a generated XML file. When I looked into the /Portals/0/ folder there was no sitemap folder or file.

The coreSitemapProvider is visible and enabled when I go to the search engine sitemap page of the website. I have tried disabling and enabling this then clearing the cache and restarting the application but this has had no effect.

Lewis Hamill
  • 171
  • 1
  • 13

2 Answers2

3

I found the cause of this issue. For some reason the website was missing a handler mapping for the sitemap. I added this back in through the web.config file as so:

<system.webServer>
   <handlers>
      <add name="SitemapHandler" path="Sitemap.aspx" verb="*" type="DotNetNuke.Services.Sitemap.SitemapHandler, DotNetNuke" preCondition="integratedMode" />
   </handlers>
</system.webServer>
<system.web>
   <httpHandlers>
      <add path="Sitemap.aspx" verb="*" type="DotNetNuke.Services.Sitemap.SitemapHandler, DotNetNuke" />
   </httpHandlers>    
</system.web>
Lewis Hamill
  • 171
  • 1
  • 13
0

Did you empty the recycle bin after deleting the page?

Chris Hammond
  • 8,873
  • 1
  • 26
  • 34