Rasolo
Search

Start | Blogs | Umbraco | Permalinks in Umbraco

2020-05-19

Umbraco

How to create permalinks in Umbraco

Method 1: rewriteRules.config

In web root/config/rewriteRules.config you can enter rewrite rules for your site, eg:

<?xml version="1.0" encoding="utf-8"?>
<rules>
<rule name="Redirect Hello World" stopProcessing="true">
<match url="^hello-world$" />
<action type="Redirect" url="/blogs/programming/hello-world-python" redirectType="Permanent" />
</rule>
</rules>

 

this will create a redirect from "rasolo.net/hello-world" to "rasolo.net/blogs/programming/hello-world-python".

 

 

 

 

Method 2: Url Tracker extension

You can create rewrite rules as permalinks using Url Tracker extension, like so:

A screen shot of what a redirect could look like.

The extension can be installed through NuGet and you can find more information here:
https://our.umbraco.com/packages/developer-tools/301-url-tracker/