Forums / Install & configuration / updateniceurls.php expected behaviour?
STEVO +
Wednesday 03 June 2009 1:16:32 pm
Hi,
I've upgraded a site from 3.9.1 to 4.1.1
I've changed the WordSeparator setting to "dash" and run updateniceurls.php.
my urls have all changed however, the old urls don't redirect to the new urls. eg:
/site/my-url > goes to > /site/My-URL (good show)
however:
/site/my_url (the original url) gives a module not found.
Is this expected behaviour or have I borked up the upgrade?
Many thanks
Russell Michell
Thursday 04 June 2009 8:03:34 pm
Hey STEVO...
It seems the upgrade path might need to be "staged" between more versions (instead of 3.9 -> 4.1, go 3.9, 3.10, 4.0.1, 4.1)
See this post for more info:
http://ez.no/developer/forum/install_configuration/big_url_alias_problems_after_3_8_4_to_4_0_1_upgrade
Hope that helps you out,Russ
Russell Michell, Wellington, New Zealand. We're building! http://www.theruss.com/blog/ I'm on Twitter: http://twitter.com/therussdotcom Believe nothing, consider everything.
Friday 05 June 2009 10:54:34 am
Hi Russ,
I'm pretty sure that's what I did, well, 3.9.1 > 3.10.1 > 4.1.1
I ran updateniceurls.php after moving to 3.10.1.
If anyone has moved from 3.9 to 3.10+ and changed their WordSeparator, I'd be interested to hear if their original urls are being redirected. or from the eZ crew if this is supposed to work.
for now i've had to hack index.php.
cheers
Steven E. Bailey
Saturday 06 June 2009 1:56:50 am
I had this same problem - which broke the indexed links and links that people had bookmarked.
I fixed it by running updateniceurls.php once with the default TransformationGroup and then again with TransformationGroup=urlalias_compat
(Afterwards going back to the default for new objects)
This appended the ezurlalias_ml table with the dir_name paths too and they then resolved.
Not sure if there isn't a better way to do this (actually I'd like to see some documentation on what this is supposed to be doing anyway).
The niceurls is a nice idea but it has been an unending frustration for me too.
Certified eZPublish developer http://ez.no/certification/verify/396111 Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com
Friday 03 July 2009 6:42:16 am
Thanks Steven,
Just a note to say that everything turned out fine by:
reverting to [URLTranslator]TransformationGroup=urlalias_compat
running updateniceurls.php
reverting back [URLTranslator]TransformationGroup=urlalias
rerunning updateniceurls.php
loverly