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?
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.
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
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
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.
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
Perhaps you also should have a look at this package https://our.umbraco.org/projects/backoffice-extensions/permanent-redirect/ developed by Peter Gregory.
/Dennis
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.
is working on a reply...