Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > 301 redirect and aliases View modes: 
User avatar
Member
Member
luciamilena-tiscali - 7/30/2010 10:58:19 AM
   
301 redirect and aliases
Hi,
I found several posts on 301 redirect and aliases problems for Kentico v.4.0.
As from the v.5.x docs, it seems the problem was solved, but I upgraded from 4.0 to 5.5 only for this reason and, unfortunately, I still have the same problem.

I need to set the URL aliases to implement the rewrite of the older URLs. But currently the returned code surfing an old URL, inserted as alias of a new one, is a 200 and not a 301 as it should be, if the alias URL redirection was working properly.

This cause at least one duplicated page for every new URL. In brief I cannot implement the URL rewriting.

Is it a bug or I'm missing some step? I already checked every useful setting like 'Redirect document aliases to main URL' and 'Allow permanent (301) redirection'.

Thanks,
Milena

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 8/2/2010 11:28:08 AM
   
RE:301 redirect and aliases
Hi Milena,

Unfortunately, I was not able to reproduce this issue in Kentico CMS 5.5.3866 (http://devnet.kentico.com/Blogs/Juraj-Ondrus/August-2010/New-Hotfix-5-5-11-%28build-no--3866%29-Released.aspx).

I have created one page in content tree with blogs.aspx URL. Then I have added document alias (blogs_old.aspx) for this document and also checked 'Redirect document aliases to main URL' and 'Allow permanent (301) redirection' options for my web site (Are you sure that you have used these options for your web site (select your web site fro dropdownlist) and not for global settings?) and everything is working as you would expect.

If I navigate to blogs_old.aspx page I’m redirected with 301 (code) redirect to blogs.aspx and this page returns 200 status code which is correct behavior. You can check this behavior for example in Firebug extension for Firefox browser.

Best regards,
Miroslav Remias.