API
Version 7.x > API > Custom 301 handler (where???) View modes: 
User avatar
Member
Member
nqwebdev1 - 10/11/2012 5:16:53 PM
   
Custom 301 handler (where???)
Hi there,

We're trying to migrate a website with over 600 URLs to Kentico. I have a custom, specific page redirection table that I'd like to use. Inputting it one by one isn't an option. Where should we write the custom 301 redirect handler? In the old one, it's Global.asax.cs. How about for v7?

My code is pretty simple:

if (requested_url = "blabla") redirectTo ("blabla")

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/12/2012 1:53:10 AM
   
RE:Custom 301 handler (where???)
Hi,

In v7 you need to place your redirection logic to \App_Code\Application\CMSAppBase.cs file which contains the code from global.asax.cs.

Best regards,
Juraj Ondrus