Hi Chris - sorry, another newbie question for you! I've got the niceUrl extension working as expected, so it links through without the dates appearing in the Url. However, going to the Url results in a 404. How do I hook up the 404 handler in your code to the web app? I couldn't seen any instructions on how to do this?
Yep, that's there... but I'm still getting the 404?
I've set the TruncatedFolderUrl to "hardware/". The niceUrl outputs "hardware/the-name-of-the-content" but I can only actually access the page via "hardware/2009/09/09/the-name-of-the-content"
Any ideas? Thanks for your help Chris, much appreciated.
Hooking up the 404 handler
Hi Chris - sorry, another newbie question for you! I've got the niceUrl extension working as expected, so it links through without the dates appearing in the Url. However, going to the Url results in a 404. How do I hook up the 404 handler in your code to the web app? I couldn't seen any instructions on how to do this?
Many thanks
James
There is a config file at config/404handlers.config.
An entry should have been written in there similar to
Yep, that's there... but I'm still getting the 404?
I've set the TruncatedFolderUrl to "hardware/". The niceUrl outputs "hardware/the-name-of-the-content" but I can only actually access the page via "hardware/2009/09/09/the-name-of-the-content"
Any ideas? Thanks for your help Chris, much appreciated.
ahh, try switching on on '.aspx' extensions... shouldn't be an issue, but lets rule it out.
Chris
Chris,
Just tried turning it off, and going back to .aspx urls, but the same problem still occurs.
Thanks
James
Chris,
If it's easier, I'd be happy to give you admin access to the admin console - we're only in very early stages so there's nothing valuable in there!
You can get in touch via james at developerfusion dot com
Thanks,
James
Try specifying a TruncatedURL
The TruncatedFolderUrl should be the path to the parent node (not including domain name).
Hi Chris,
I've already set the TruncatedFolderUrl property to "hardware/" (which is the path to the parent node).
Thanks
Chris, sorry, I've figured it out. The trailing slash was the problem - if I remove it everything works fine.
Thanks
James
cool!
is working on a reply...