Document alias is in collision with other document alias or document URL path

Delford Chaffin asked on February 28, 2018 15:43

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!

Recent Answers


Brenden Kehren answered on February 28, 2018 22:33

You would need to add the

/location-1/our-services
/location-2/our-services
etc.

aliases on the /Our-Services page for it to work as you're looking for.

0 votesVote for this answer Mark as a Correct answer

Delford Chaffin answered on February 28, 2018 22:43

Thanks! So, I put:

/location-1/Our-Services/{service}

... in place of:

/{location}/Our-Services/{service}

... 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.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on February 28, 2018 22:49

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.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.