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.
Let's create an alias for a content item:
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.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:
Enter the name of the alias and click on the Add button. Here, we set it as
tradeupdate
.That's it. Now access this item using the alias URL,
http://sitecorecookbook/tradeupdate
.