Lewis Hamill
Lewis Hamill

Reputation: 171

DNN Sitemap broken, 404 error

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.

Upvotes: 1

Views: 300

Answers (2)

Lewis Hamill
Lewis Hamill

Reputation: 171

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>

Upvotes: 3

Chris Hammond
Chris Hammond

Reputation: 8943

Did you empty the recycle bin after deleting the page?

Upvotes: 0

Related Questions