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
I have a Site root node which contains a property 'umbracoInternalRedirectId' which is used to link to the desired home node.
Now, we have a template called Team and another one called Contact.
When we surf to these urls we get the selected home node from above as output in the frontend with a status 200. But this isn't correct, these pages don't exist in the backoffice so we want a 404 to be returned and our 404 custom page.
When I disable this internalRedirect we get the desired result.
To following changes are already provided:
<web.routing trySkipIisCustomErrors="true" internalRedirectPreservesTemplate="false" disableAlternativeTemplates="true" disableFindContentByIdPath="true" umbracoApplicationUrl="" disableRedirectUrlTracking="true"></web.routing>
I think you need to set another setting to false.
This one disableAlternativeTemplates
If you set that to false you can't call a page with a alternative template.
Where home is the name of a template.
doesn't have any effect, tried it with true and false, it still gives me a 200 status code and the selected home page from the Site node content picker.
Any other ideas?
I think you also might need to remove the searchfortemplate handler from the 404handlers.config file. I’ve never really gotten why this handler was in there, but we remove it to fix this issue.
Looking at our projects I must say Kevin is right. You need to remove that as well.
Thanks guys, is working now!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted