Multiple page aliases in Kentico 9

Bob Banks asked on February 18, 2016 19:31

Hello,

I'm implementing a set of websites based on Kentico 9 using a MVC front-end. These sites are being migrated from another platform. We would like to keep the existing URLs available for SEO reasons.

In order to support the existing URLs, I planned on using additional page aliases attached to the content nodes. Yet, in the Pages module, I cannot find a place to add additional aliases. Under "Page alias", I can edit the single page alias but no options for adding others.

Am I missing something or can I not add additional aliases to nodes? Any other recommendations for handling legacy URLs? I'd like to handle them within the MVC application as opposed to configuring as rewrite rules in IIS.

Recent Answers


David te Kloese answered on February 18, 2016 21:10

Hi Bob,

Unfortunately this isn't supported in Kentico when using MVC.

This and other unsupported features when using MVC can be found in the documentation:

https://docs.kentico.com/display/K9/Supported+and+unsupported+Kentico+features+on+MVC+sites

Greets,

David

3 votesVote for this answer Mark as a Correct answer

Zach Perry answered on February 18, 2016 21:11 (last edited on February 18, 2016 21:13)

Image Text

Edit- Forgot this isn't supported in MVC, Just seen pages application.

0 votesVote for this answer Mark as a Correct answer

Bob Banks answered on February 18, 2016 22:14

Here's what I don't understand. All I want Kentico to do is hold the additional page aliases. I don't want it to resolve or route pages at all. In reality, Kentico is acting as little more than a content repository for me.

0 votesVote for this answer Mark as a Correct answer

Rui Wang answered on February 18, 2016 23:02

Here is an idea. How about add field(s) into the Page type which allows you to enter alias under the Form tab. Because with MVC, the default URL Alias feature wouldn't work any way, and you are just looking a way to store the aliases and pull it out using API.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on February 18, 2016 23:23

Hi,

If it needs to be easy manageable by the editors you could also create a special page type ('myAliasPage' or something like that) and let the editors create it as child elements beneath the page. This way you'd easy see the 'aliases' and let Kentico generate the correct URL format (possible forbidden chars/paths/extension/etc). This should requires no extra coding in the Kentico part. In your MVC app you could just read this type.

Greets,

David

1 votesVote for this answer Mark as a Correct answer

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