Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Michiel 30 posts 61 karma points
    Apr 19, 2012 @ 15:01
    Michiel
    0

    Sitemap only working on my localhost

    Hey,

    I've got the CWS running on my pc with WebMatrix and the sitemap is working just fine. But I've got the same version on the server and when I try to go to /sitemap.xml there is nothing. (The page cannot be found)

    Anything I need to chance in the urlrewrite or in the config?

  • Ioannis Gkoutsidis 16 posts 67 karma points
    Jun 17, 2012 @ 15:23
    Ioannis Gkoutsidis
    0

    Hi all,

    same thing here!

    I've tried to move the site on a local IIS7 environment where I can get the sitemap and the rss feeds correctly without any futher configuration, but when I upload it on my official server, I get 404 error for both pages...

  • Ioannis Gkoutsidis 16 posts 67 karma points
    Jun 17, 2012 @ 20:20
    Ioannis Gkoutsidis
    0

    Hi again,

    I finally managed to get this working!

    So, from my little experience, be sure to have your sites AppPool in "Integrated Mode", in order to force IIS to handle the sitemap.xml file with ASP.NET. This is essential in order to get the UrlRewriting module get started and properly rewrite your request. If you amend the integrated mode setting, IIS will try to handle the xml file's request as a static file, which is of course not present, so you get the 404 error.

    As a last note, try to disable any caching, if there is one, for your macro...

    With these changes the sitemap.xml works fine for me.

Please Sign in or register to post replies

Write your reply to:

Draft