Alias and query string

Tommy De Notarpietro asked on February 13, 2017 13:20

I see it's not possible to use querystrings with Page aliases. Will this functionality be included in the future?

Is there another way to achieve this? The only way I think of is a rule in IIS or a custom web part.

I should redirect \old_homepage.aspx?lang=1 to \newhomepage (french culture) and \old_homepage.aspx?lang=2 to \newhomepage (english culture) to keep previous existing URL's working.

Correct Answer

Peter Mogilnitski answered on February 13, 2017 16:59

if I am not mistaken you can use the wild cards like Juraj mentioned above, but the problem is that you query string will be transferred to the new URL i.e.: \old_homepage.aspx?lang=1 will go \newhomepage?lang=1, but don't need this query string for your new URL :( So I would say your initial idea was correct: it is either IIS rewrite rule or custom web part.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Juraj Ondrus answered on February 13, 2017 13:58

Hi Tommy,
One option would be using the wild card URLs or, you can take inspiration from this URL Redirection article. The idea still applies for newer Kentico versions so you can take inspiration from it.

1 votesVote for this answer Mark as a Correct answer

Jeroen Fürst answered on February 14, 2017 10:35 (last edited on February 14, 2017 10:36)

Hi Tommy, Check out the custom 301 redirects module: http://devnet.kentico.com/marketplace/modules/custom-301-redirect-module Cheers, Jeroen

1 votesVote for this answer Mark as a Correct answer

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