22999 Posts in 11854 Topics by 2828 members
|Go to End|
7 April 2012 at 4:53am
I just found out, that if I change the URLSegment of a Page or even change the hierarchy SilverStripe has some mechanism to map the old URL(s) to the new URL(s). As this is a feature I've never heard of I just wanted to ask how reliable that one is respectively where to get more info about it.
The reason why I'm asking is that I am in the process of restructuring our complete website. With approximately 2000 URL changes, correct redirection is a big issue. If SilverStripe can handle this that's fine with me. Otherwise I would have to develop such a feature by myself.
11 April 2012 at 11:06pm
Yes, it's reliable.
If the URL doesn't exist, the version system is used to check whether a page with that URL used to exist but was renamed. If there are more than one with the same URL, the most recent is used.
The code that does this is in ModelAsController::getNestedController
I'm not sure if it works with nested URLs, but it'd only take you 5 minutes to check.
|Go to Top|