Copied to clipboard

Flag this post as spam?

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


  • Søren Reinke 158 posts 206 karma points c-trib
    Jul 24, 2014 @ 14:33
    Søren Reinke
    0

    Won't create sitemap.xml or robots.txt

    Hi Richard

    I am having a little problem with your great tool.

    I have configured the program to create sitemap.xml and robots.txt files.
    But when trying to access them i just get an 404 :(

    I guess it's a permission issue, but i have tried to create 2 empty files and given IIS_IUSRS permissions to change the files with:

    icacls sitemap.xml /grant "IIS_IUSRS":M

     

    icacls robots.txt /grant "IIS_IUSRS":M

    But to no luck, still no files.

    Might you have an idea what is going on?

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jul 25, 2014 @ 10:55
    Richard Soeteman
    0

    Hi Søren,

    After you modified the permissions you need to disable/enable the options again. That will configure the http handlers into the web.config file. Otherwise check the manual how to configure this manually.

    Hope this helps,

    Richard

  • Søren Reinke 158 posts 206 karma points c-trib
    Jul 28, 2014 @ 10:50
    Søren Reinke
    0

    Hi Richard.

    I tried to disable/enable it multiple times, and tried to access the sitemap.xml and robots.txt file, but no luck no matter what i do.

    Clicking the 'preview' button in the SEOChecker config, just gives me a 404

    Nothing has been changed in my web.config file, your tool is scanning the pages and all that, just not those 2 files.

    What confuses me, is that installing SEO checker from the umbraco site running in VS2013, added more to the web.config than the same site running on our upcoming live server.

    Could you please write what needs to be added to web.config in order to get sitemap.xml and robots.txt to work.


    I found this script somewhere that i use for permissions:

    icacls app_code /grant "IIS_IUSRS":(OI)(CI)RX

    icacls app_browsers /grant "IIS_IUSRS":(OI)(CI)RX

    icacls app_data /grant "IIS_IUSRS":(OI)(CI)M

    icacls bin /grant "IIS_IUSRS":(OI)(CI)R

    icacls config /grant "IIS_IUSRS":(OI)(CI)M

    icacls css /grant "IIS_IUSRS":(OI)(CI)M

    icacls data /grant "IIS_IUSRS":(OI)(CI)M

    icacls masterpages /grant "IIS_IUSRS":(OI)(CI)M

    icacls media /grant "IIS_IUSRS":(OI)(CI)M

    icacls python /grant "IIS_IUSRS":(OI)(CI)M

    icacls scripts /grant "IIS_IUSRS":(OI)(CI)M

    icacls umbraco /grant "IIS_IUSRS":(OI)(CI)M

    icacls usercontrols /grant "IIS_IUSRS":(OI)(CI)R

    icacls xslt /grant "IIS_IUSRS":(OI)(CI)M

    icacls web.config /grant "IIS_IUSRS":(OI)(CI)M

    icacls web.config /grant "IIS_IUSRS":M

    icacls views /grant "IIS_IUSRS":(OI)(CI)M


     

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jul 28, 2014 @ 15:14
    Richard Soeteman
    0

    I see that you set permissions on web.config twice? I'm not an expert on setting permissions via script but think Modify rights via explorer should work. Otherwise you can add the handlers in the web.config file by hand also? It's documented in the manual.

    Hope this helps,

    Richard

  • Søren Reinke 158 posts 206 karma points c-trib
    Jul 29, 2014 @ 12:25
    Søren Reinke
    0

    We completely removed any limitation of permission on web.config, then the seochecker added something to it, and we put the permissions up again.

    Now the sitemap.xml and robots.txt are working :)

    I can't find anything in the documentation regarding the now added XmlSitemapHandler and RobotsTxtHandler.
    http://soetemansoftware.nl/media/14203/seochecker-manual.pdf ;

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jul 29, 2014 @ 15:09
    Richard Soeteman
    0

    Great you had the rights "correct" and you got it working and oops I thought it was in the manual.

    Below the lines you can add to your web.config file in system.webserver/handlers section in case you need them

    <add name="SEOCheckerSitemapxm" path="sitemap*.xml" verb="*" type="SEOChecker.Handlers.HttpHandlers.XmlSitemapHandler" preCondition="integratedMode" />
    <add name="SEOCheckerRobotTxt" path="robots.txt" verb="*" type="SEOChecker.Handlers.HttpHandlers.RobotsTxtHandler" preCondition="integratedMode" />
    

    Best,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft