Bug reports Found a bug? Post it here please.
Version 7.x > Bug reports > 301 redirects and Image Directpath not working View modes: 
User avatar
Member
Member
dan-moov2 - 10/9/2012 11:59:42 AM
   
301 redirects and Image Directpath not working
Can anyone confirm the following behaviour, we're doing a migration of content from an existing cms into Kentico and want to redirect old urls to the new kentico path, we're doing this by using aliases on the content. The aliases don't seem to redirect in K7 whereas they were working fine in K6, the content displays but no redirect is performed.

Also, images migrated into media libraries do not display when referencing their directpath, very oddly though, if I recycle the site (by making a web.config change) the images will load until they're viewed in the media library after which they no longer load again.

We have the following set up in the web.config:
<modules runAllManagedModulesForAllRequests="true">
and
<httpErrors existingResponse="PassThrough" />

We have "Allow permanent (301) redirection" enabled, as is "Redirect document aliases to main URL" and "Redirect documents to main extension" with "Friendly URL Extensions" set to the rather obscure ";;.aspx;.htm;" (the same value as is working in K6)

Any guidance much appreciated.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 10/10/2012 1:58:43 AM
   
RE:301 redirects and Image Directpath not working
Hello,


Yes, we can confirm that there is a bug in the URL processing of physical files with runAllManagedModulesForAllRequests="true". The fix will be included in hotfix 7.0.3 which will be released this Friday. I am sorry for your inconveniences.


Best regards,
Helena Grulichova