Site structure
Version 5.x > Site structure > Document Alias Issue View modes: 
User avatar
Member
Member
shoaibdescent - 7/13/2012 8:50:19 AM
   
Document Alias Issue
Dear All,

We are having one very strange issue related to Document Alias.
We defined a document alias let say "/ALIAS1" for one particular document Say "A".
But when we try to navigate to "domain/ALIAS1" a completely different document say "B" is displayed.

We checked properties of "B" but it doesn't have any document alias defined in Document Aliases section at all.

Is there any way to trace this behavior.
Is there any page where the Urls are resolved. Also can we force somewhere in code to redirect to document "A" in case url has ALIAS1 in it?

Any help will be highly appreciated

Muhammad Shoaib

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 7/14/2012 11:42:22 AM
   
RE:Document Alias Issue
Hi,

could you please grant us with an access on your site and send it to support@kentico.com?
The redirection is implemented in the url rewriting which is a part of full source code. But the redirection you described should work using Document URL path.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
shoaibdescent - 7/14/2012 3:39:15 PM
   
RE:Document Alias Issue
Dear Ivana,

Thanks for you response.
In the mean, could you kindly suggest any place in the source code where
we can force the url to be redirected to particular document,
for instance if url domain/ALIAS1 is accessed the Kentico Engine redirects it to
document A.

Thanks
M. Shoaib

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 7/14/2012 5:29:18 PM
   
RE:Document Alias Issue
Hi,

you can manage redirection using global events (in version 6.0):
CMSRequestEvents

In case you are using 5.x version you will need to insert your code to the global.asax.cs file (somewhere into Application_BeginRequest event)

But in case the redirection you use is not working by default there will be something wrong in your project, because this functionality should definitely work. You may try to apply the latest hotfix for your Kentico project. It is possible that there was bug related to your issue fixed.

Best regards,
Ivana Tomanickova