Copied to clipboard

Flag this post as spam?

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


  • James 251 posts 1169 karma points
    Jan 12, 2016 @ 19:20
    James
    0

    Redirecting to first child

    Hello all,

    Quick question sort of weighted towards SEO.

    If i have a website that has sections within it like:

    Section

    • about

    • cool stuff

    • more cool stuff

    But instead of section being a page it is simply just a node that houses content pages below it.

    So what i do is create a controller that hijacks the section document type and redirects to the first child. That way if http://mysite.com/section is browsed to it will go to: http://mysite.com/about.

    If i ensure in the HTML sitemap + xml sitemap i exclude document types of 'section' is there any other negative impact to having this in place?

    technically http://mysite.com/section exists but surely it wont be indexed or such?

    cheers,

    james

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jan 12, 2016 @ 19:31
    Dennis Aaen
    0

    Hi James,

    One way that you can do it is using the umbracoredirect property alias

    https://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracoredirect/ but be aware that it creates a 302 redirect.

    Maybe you could use the 301 redirect tracker, with the package you can create your own redirects. https://our.umbraco.org/projects/developer-tools/301-url-tracker

    Hope this helps,

    /Dennis

  • James 251 posts 1169 karma points
    Jan 12, 2016 @ 19:39
    James
    0

    Hi Dennis,

    So are you saying it is important to have a 301 redirect in this situation?

    simply hijacking the document type and redirect to first child isnt enough, there must be a status code?

    cheers,

    james.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jan 12, 2016 @ 20:03
    Dennis Aaen
    0

    Hi James

    I always think that it´s important to have 301 redirects regarding to SEO https://www.ltnow.com/difference-301-302-redirects-seo/ and https://www.mattcutts.com/blog/seo-advice-discussing-302-redirects/

    But I must say that I am not a SEO expert.

    /Dennis

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jan 12, 2016 @ 19:39
    Dennis Aaen
    0

    Perhaps you also should have a look at this package https://our.umbraco.org/projects/backoffice-extensions/permanent-redirect/ developed by Peter Gregory.

    /Dennis

  • Jesper Hauge 298 posts 487 karma points c-trib
    Jan 13, 2016 @ 00:26
    Jesper Hauge
    0

    You could also check the approach in this article by Jeroen Breuer

    http://24days.in/umbraco/2014/urlprovider-and-contentfinder/

    Jeroen uses a combination of an URL-provider and a content finder to do something similar, advantage being that there is no redirects or duplicate content involved.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies