I have now changed the assembly reference to uComponents.NotFoundHandlers and added the httpResponse element to the web.config but still nothing.
Now in my development machine, I am getting this error message from Umbraco:
Page not found
No umbraco document matches the url 'http://local.********.org.uk/oldpage'
umbraco tried this to match it using this xpath query'/root/* [@urlName = "oldpage"] | /root/*/* [@urlName = "oldpage"]')
This page can be replaced with a custom 404 page by adding the id of the umbraco document to show as 404 page in the /config/umbracoSettings.config file. Just add the id to the '/settings/content/errors/error404' element.
This might help, if I change the name of the type in the notfound element, the problem is not noticeable meaning the app is not even trying to load the type SearchFor301MovedPermanently. Why?
uComponents 301 Moved Permanently handler not working
We have uComponents 5 installed in Umbraco 4.8.1.
There's a base document that has the property umbraco301MovedPermanently and I set it to /oldpage.
I have added the NotFoundHandlers.SearchFor301MovedPermanently handler to the 404handlers.config file as you can see below:
<NotFoundHandlers>
<notFound assembly="umbraco" type="SearchForAlias" />
<notFound assembly="umbraco" type="SearchForTemplate"/>
<notFound assembly="umbraco" type="SearchForProfile"/>
<notFound assembly="uComponents.Core" type="NotFoundHandlers.SearchFor301MovedPermanently" />
<notFound assembly="umbraco" type="handle404"/>
</NotFoundHandlers>
But when I try to load thesite.com/oldpage it is not working. I am simply getting a 404 which it seems to be be thrown by handle404, right?
Server Error
What else do I need to do to make this work?
Hi Fabio,
In v5 the NotFoundHandlers have moved into their own DLL. Try this instead:
Cheers, Lee.
Actually, it looks as if IIS is handling the 404 pages instead of Umbraco.
You may need to add the following to your Web.config, inside the <system.webServer> section:
Cheers, Lee.
Mmmm... Thanks for your supoprt Lee!
I have now changed the assembly reference to uComponents.NotFoundHandlers and added the httpResponse element to the web.config but still nothing.
Now in my development machine, I am getting this error message from Umbraco:
Page not found
No umbraco document matches the url 'http://local.********.org.uk/oldpage'
umbraco tried this to match it using this xpath query'/root/* [@urlName = "oldpage"] | /root/*/* [@urlName = "oldpage"]')
This page can be replaced with a custom 404 page by adding the id of the umbraco document to show as 404 page in the /config/umbracoSettings.config file. Just add the id to the '/settings/content/errors/error404' element.
For more information, visit information about custom 404 on the umbraco website.
This page is intentionally left ugly ;-)
Any other suggestions on why this is still not working?
This might help, if I change the name of the type in the notfound element, the problem is not noticeable meaning the app is not even trying to load the type SearchFor301MovedPermanently. Why?
Apparently the leading slash as the problem in both staging and development environments.
Thanks Lee!
Cool, glad you found the issue.
is working on a reply...