Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Quick question sort of weighted towards SEO.
If i have a website that has sections within it like:
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?
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,
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?
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.
Perhaps you also should have a look at this package https://our.umbraco.org/projects/backoffice-extensions/permanent-redirect/ developed by Peter Gregory.
You could also check the approach in this article by Jeroen Breuer
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...
Write your reply to:
Image will be uploaded when post is submitted