Existing pages returning 404s
# help-with-umbraco
m
U10 site using uSkinned (U10.6.1, uskinned 3.0.5). All the blog item pages and also category listing pages are returning a 404. This was definitely working until it went live last week but we can't say for sure if it changed then or just today when the client went to put in a new blog item and realised it was broken. (The existing items were carried over from an old site) We have used this system many times, same versions, and never came across this before. Things we've tried: - unpublishing and publishing pages and sections - took all 301 rules and then all IIS redirect rules - restarted site and app pool several times - checked the template, to the extent of taking everything out of it in case there was an error in the code but it still just 404s - Refreshed all the Caches in Settings > Published Status It's working locally on my machine, I republished in Visual Studio and uploaded all the DLLs again and no joy. The listing page works, the blog items appear in search results. Nothing in the logs Does anyone have any ideas of anything else we could try? Thanks
It turns out that the URL for blog posts has changed from blog/xxxx to blog/posts/xxx so the generated URL is wrong throughout. I have put a temporary patch on by modifying generated URLs in the code and sticking the Posts bit in, but that really only works for loops, listings etc that we have some control over, not for when the client might put together a list of links themselves in a block.
I ended up putting in a redirect rule to take care of this properly. However it resurfaced on another new site the following week and we realised that if we just had sitename.com in Culture/hostnames it gave this issue. Once we put in www.sitename.com the error disappeared. Not sure if it's a uskinned issue or our server or what, but just in case anyone comes across this again.
3 Views