Copied to clipboard

Flag this post as spam?

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


  • xrisdoc 54 posts 102 karma points
    Jan 07, 2013 @ 14:34
    xrisdoc
    0

    Sitemap redirects to homepage

    Hello,

    I have setup my umbraco website using the Site Settings structure mentioned in the following blog post: http://cultiv.nl/blog/2010/12/19/tip-of-the-week-the-ultimate-site-structure-setup/

    I have also installed the Cultiv Search Engine Sitemap package.

    However, when I request www.mysite.com/cultivsearchenginesitemap or www.mysite.com/cultivsearchenginesitemap.aspx it seems to render the homepage content instead of the xml sitemap.

    I can, however, get the xml site map by requesting www.mysite.com/home/cultivsearchenginesitemap.aspx and www.mysite.com/home/cultivsearchenginesitemap

    I would like to be able to request the site map at the url www.mysite.com/cultivsearchenginesitemap, but I am unsure how I achieve this.

    Thanks

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 07, 2013 @ 20:45
    Jan Skovgaard
    0

    Hi Xrisdoc

    Can you access other child nodes om the "home" node without having home in the url?

    /Jan

  • xrisdoc 54 posts 102 karma points
    Jan 08, 2013 @ 10:39
    xrisdoc
    0

    Hello Jan,

    Thanks for your reply.

    There are no child nodes within the home node, due to the way I have structured my site, which is similar to the one in the blog post I mentioned in my first post.

    My umbraco site structure is as follows:

    Content
    - Site (using umbracoInternalRedirectId to make the Home node the homepage)
      -- Home
      -- About
        --- Sub Page 1
        --- Sub Page 2
        --- Sub Page 3
      -- Contact
      -- Terms and Conditions 

    However, I have tested what you suggested above by adding a test page to the home node. I can access the test page at page www.mysite.com/home/test-page but not www.mysite.com/test-page, which I think makes sense due to the way I have structured the site?

    Thanks,

  • Mark Bennett 199 posts 375 karma points
    Jun 10, 2013 @ 13:54
    Mark Bennett
    100

    I had this same issue with a 4.11.8 site at the weekend (worked fine on 4.7.2) and had a bit of a play around in a development setup.

    It looks to me like the way the redirect works in 4.11.8 has been changed and therefore the redirection happens before the sitemap is displayed.

    I can however create a document in my site called sitemap set the template to cultivsearchengine and then naviagate to sitemap.aspx, obviously I had to mess around with my doc types a bit so that I could create a document with the cultivsearchengine template.

    I'm going to try tonight to make IIS handle the redirect rather than Umbraco and see if that also works, i'll keep you posted as this may be a cleaner way to do it.

    I hope this helps.

  • xrisdoc 54 posts 102 karma points
    Jun 10, 2013 @ 16:18
    xrisdoc
    0

    Hello Mark,

    Thanks for your reply. I had already implemented a similar solution to the one you have provided and I probably should have updated this to reflect that, but forgot all about it. But, thanks again anyway for providing a solution, I'm sure this will help others with a similar issue.

    Thanks,

    Chris

  • Yannick Smits 321 posts 718 karma points
    Oct 02, 2013 @ 12:40
    Yannick Smits
    0

    So did the "load masterpage" directly from URL functionality stopped working in 4.11+? I've the same issue in 6.1.5 but I don't see it documented anywhere, so I'm guessing it might be something else blocking this functionality in our installs.

  • Yannick Smits 321 posts 718 karma points
    Oct 02, 2013 @ 13:01
    Yannick Smits
    0

    ok got it working again in 6.1.5. I had a umbracoRedirect on the rootnode which took priority.

  • Bjarne Fyrstenborg 1285 posts 4039 karma points MVP 8x c-trib
    Oct 22, 2013 @ 19:18
    Bjarne Fyrstenborg
    0

    I have some issues in Umbraco v. 6.1.6 too, to show the sitemap xml.

    I have the content stucture like this:

    • Master root
      • da - lang node
        • HomePage
        • Page 1
        • Page 2
      • Sitemap
    when I was working on localhost I could access /sitemap/ or /sitemap.aspx, but after uploading to a server it returns a 404 error.. however I still can access the xml if I write /{nodeid}.aspx
    the sitemap content node is using a the template cultivsearchenginesitemap. On da node I have a umbracoRedirect to HomePage node.. when I am using this redirect mydomain.com/cultivsearchenginesitemap returns to homepage, but if I remove the redirect, I can access the sitemap xml by entering mydomain.com/cultivsearchenginesitemap
    But still /sitemap.aspx is not returning the xml file, but a 404 error..
    /Bjarne
  • Mark Bennett 199 posts 375 karma points
    Oct 23, 2013 @ 11:52
    Mark Bennett
    0

    Bjarne,

    My sitemap content node has no template, has a doc type linked to my standard site page - within the content I have added the SearchEngineSitemap macro.

    Hope this helps.

    Cheers, Mark.

  • Bjarne Fyrstenborg 1285 posts 4039 karma points MVP 8x c-trib
    Oct 23, 2013 @ 18:28
    Bjarne Fyrstenborg
    0

    But I can't see why it shouldn't work with accessing mydomain.com/sitemap/ or mydomain.com/sitemap.aspx

    it had works in previously versions of Umbraco.. I can access the node (xml file) by id e.g. mydomain.com/1416.aspx

    and when I remove umbracoRedirect from da to HomePage node I can access the xml by template alias too, but as soon I add the redirect from the property on da node, it returns 404 error..

    /Bjarne

  • Bjarne Fyrstenborg 1285 posts 4039 karma points MVP 8x c-trib
    Oct 23, 2013 @ 21:48
    Bjarne Fyrstenborg
    0

    I think it might have something to do with the hostname set on da node.

    e.g. when I on "da" node has set www.mydomain.com I can access the xml via mydomain.com/sitemap/ but not www.mydomain.com/sitemap/ and I get an 404 error..

    and if I add mydomain.com to da node, mydomain.com/sitemap/ also returns an 404 error..

    If I remove www.mydomain.com from hostname I can access www.mydomain.com/sitemap/ and likewise for mydomain.com ..

  • Mark Bennett 199 posts 375 karma points
    Oct 24, 2013 @ 09:44
    Mark Bennett
    0

    Bjarne,

    Thats all a bit strange. I do the same for a site I run - which resolves correctly with and without the www in front of it (it's running in 4.11 version). However I have the hostname in umbraco just set with the www and I handle the domain without the www in IIS - I can't get to the IIS box at the mo as i'm on a client site but I think I do it with a redirect. I could take a look for you later if it would help?

    Site is www.corefituk.co.uk and corefituk.co.uk...as you can see corefituk.co.uk always redirects to the www address...

    Cheers, Mark..

  • Bjarne Fyrstenborg 1285 posts 4039 karma points MVP 8x c-trib
    Oct 24, 2013 @ 09:51
    Bjarne Fyrstenborg
    0

    Hi Mark

    I have also use the package in Umbraco v.4.11.x versions where it works ...

    this site is using Umbraco v.6.11.6 .. I'm not sure if it might be a bug..

    /Bjarne

  • Mark Bennett 199 posts 375 karma points
    Oct 24, 2013 @ 12:20
    Mark Bennett
    0

    Bjarne,

    Yup maybe a bug....need someone else to replicate if possible...do you have another v6 you could test it on?

    I have a v6 setup somewhere - if I manage to get time I'll see if I get the same issue.

    Cheers, Mark..

Please Sign in or register to post replies

Write your reply to:

Draft