Creating vanity URLs for marketing purposes using an alias item

An alias is an alternate path for an item to get accessed or, you can say, a shorter and alternate URL to access an item that has a long URL. It is often called vanity URL when used for marketing purposes. In this recipe, we will create an alias URL for an item.

How to do…

Let's create an alias for a content item:

  1. Open the Content Editor and select a content item. Here, we select the /sitecore/Content/Home/investors/financial-news/2016/25-02-2016 item, which shows the latest trading updates of the company.
  2. From the ribbon in the PRESENTATION tab, click on the Aliases button in the URL section, which will open the Aliases dialog, as shown in the following image:
  3. Enter the name of the alias ...

Get Sitecore Cookbook for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.