Your snippet seems to be removing commas from the URL's as intended, but on the same time, the rule seems to be making a redirect loop, which results in the page not being accessible.
think the redirect loop is that it will match for urls with no commas too.. so changing that first one.. will mean only matches urls with at least one ,
If that's not it let me know.. then I'll check on a live environment.
redirect URL's with special characters
Hi there
As the title implies, I'm trying to find a workaround for redirecting URL's with special characters like commas.
Some months ago I migrated some old Umbraco 4 site to a new Umbraco 7 installation.
And now a bunch of our ol URL's ain't working no more, since Umbraco 7 ain't allowing commas in URL's.
I edited
So I want to ask you guys, if you've come across a fix to redirect all URL's with i.e. commas to their respective new URL's without the commas.
Example: http://www.firmabeskrivelser.dk/byggemarked-og-vvs/pergo-laminatgulv,-massivt-traegulv-og-mange-andre-gulvtyper/
should now redirct to
http://www.firmabeskrivelser.dk/byggemarked-og-vvs/pergo-laminatgulv-massivt-traegulv-og-mange-andre-gulvtyper/
The thing is that this site alone has like 3000-4000 posts, so changing them manually isn't an option.
Hope you can help me out here.
Kind regards Henrik
if you have access to urlrewrite on your hosting platform then you can use that. or there is the urlrewriting.net component in umbraco http://wondergrub.com/articles/an-introduction-to-umbraco-urlrewriting/
something like this for urlrewrite in the web.config should cover 2 commas in the url, extend if you expect more.
Hi Mike
Thanks for your reply.
Your snippet seems to be removing commas from the URL's as intended, but on the same time, the rule seems to be making a redirect loop, which results in the page not being accessible.
Is this something you've experienced before?
I tried adding the
after
But regardless of the sections position, it's causing a redirect loop.
sorry, hadn't actually tested it :-(
might need that first [,]* changing to a ,
think the redirect loop is that it will match for urls with no commas too.. so changing that first one.. will mean only matches urls with at least one ,
If that's not it let me know.. then I'll check on a live environment.
Thank you very much, Mike!
You saved my day :)
Works like a charm
I also have some queries about the web.config redirection
i need to redirect
www.abc.com.au/"
to
www.abc.com.au
Hi Steve,
I have answered for your query here - https://our.umbraco.org/forum/umbraco-forms/90107-url-webconfig-special-symbol-redirection
is working on a reply...