Copied to clipboard

Flag this post as spam?

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


  • Bjarkus Kupernikuz 3 posts 23 karma points
    Jan 08, 2014 @ 14:22
    Bjarkus Kupernikuz
    0

    Sitemap don't show - redir to frontpage

    Hi

     

    I'm on Umbraco 4.10.1

    Installed the Cultive Search Engine Sitemap.

    Trying to access: http://mydomain.com/cultivesearchenginesitemap or http://mydomain.com/cultivesearchenginesitemap.aspx - both results in a redit to my frontpage.

     

    I can see, that other had similar problems, but could get the sitemap showing while writing their URL like this:

    http://mydomain.com/home/cultivesearchenginesitemap but that don't work here either (This probably because we made some changed to UrlRewrite.config - see below)

     

    I'm newbee to Umbraco, so I don't have that much experience goofing arround in this system yet :-)

    Info that may be helpful:

    My structure is like this:
    content
    -domain
    --da-DK
    --en-GB
    ---Frontpage
    ---Company1
    ---Company2
    ---Company3
    ---etc etc
    --fo-FO
    --fi-FI
    -Banners small
    -Banners high
    -Galleries
    -Companies
    -Opening Hours
    -Trash


    My /config/UrlRewriting.config looks like:

    <add name="www-301-redirect"
    
        redirect="Domain"     gnoreCase="true" rewriteUrlParameter="IncludeQueryStringForRewrite"
        virtualUrl="http://www.mydomain.com/(.*)"     redirectMode="Permanent"
    destinationUrl="http://mydomain.com" /> 
    <add name="handlers"
        virtualUrl="^~/data/(.*)$"      rewriteUrlParameter="ExcludeFromClientQueryString"
        destinationUrl="~/en-GB/frontpage/?altTemplate=$1"  ignoreCase="true" />

     

    Anyone has a hint for what I can do, getting a XML sitemap?

     

    /Bjarke

  • xzuttz 9 posts 29 karma points
    Jan 14, 2014 @ 12:34
    xzuttz
    0

    Hello,

     

    I tried to run the package with Umbraco v6.1.5 (Assembly version: 1.0.4993.19246). 

    When going to http://www.yourdomain.com/cultivsearchenginesitemap it gives a razor error.

    This was because the following code:

     

            if (node.Level <= maxLevelForSiteMap && node.ChildrenAsList.Count > 0)

    had to be changed to

            if (node.Level <= maxLevelForSiteMap && node.ChildrenAsList.Count() > 0)

  • Bjarkus Kupernikuz 3 posts 23 karma points
    Jan 14, 2014 @ 13:40
    Bjarkus Kupernikuz
    0

    Hi

    Where did you change that? Wich file?

  • xzuttz 9 posts 29 karma points
    Jan 14, 2014 @ 13:41
    xzuttz
    0

    Package: Cultiv_Search_Engine_Sitemap_(Razor_edition)_1.0.2.zip

    File: CultivSearchEngineSitemap.cshtml

  • xzuttz 9 posts 29 karma points
    Jan 14, 2014 @ 13:43
    xzuttz
    0

    I think i posted this in the wrong place - I don't believe it has anything to do with your problem. Sorry.

  • Bjarkus Kupernikuz 3 posts 23 karma points
    Jan 14, 2014 @ 13:44
    Bjarkus Kupernikuz
    0

    Don't think so either, because I don't find a such file via FTP, on our server :-)

     

  • xzuttz 9 posts 29 karma points
    Jan 14, 2014 @ 13:46
    xzuttz
    0

    Although if you want you can install the Razor version, and edit the code where I pointed out, then it might work for you :)

Please Sign in or register to post replies

Write your reply to:

Draft