I have a page in Kentico 7 with a URL of:
/{location}/Our-Services/{service}
I changed it to:
/Our-Services/{service}
... but now I would like to add a document alias so the old URL redirects to the new one. When I do, I get the following message:
"Document alias is in collision with other document alias or document URL path"
I don't understand how that is possible being that I just removed that URL from this very document. Can anyone help me understand this and/or a way around it?
Thanks!
You would need to add the
/location-1/our-services /location-2/our-services etc.
/location-1/our-services
/location-2/our-services
aliases on the /Our-Services page for it to work as you're looking for.
/Our-Services
Thanks! So, I put:
/location-1/Our-Services/{service}
... in place of:
... and it took it. I don't really understand why they first wildcard ({location}) doesn't work. I don't really want to add nearly 100 aliases.
The wildcard doesn't work because the page no longer exists and the /Our-Services page is now at level 1 when it was at level 2 before. You could add a redirect in your web.config but it would be nearly the same as adding that in the Kentico UI. You may be able to get a better wildcard for those locations but most likely not.
Please, sign in to be able to submit a new answer.