Did this article resolve your question/issue?


Your feedback is appreciated.

Please tell us how we can make this article more useful. Please provide us a way to contact you, should we need clarification on the feedback provided or if you need further assistance.

Characters Remaining: 1025



Replace special characters in page urls with a dash

« Go Back


Article Number000074070
EnvironmentProduct: Sitefinity
Version: 8.x, 9.x, 10.x
OS: All supported OS versions
Database: All supported Microsoft SQL Server versions
Question/Problem Description

How to configure Sitefinity to exclude some special characters (e.g. apostrophe (')) from the page URL and to replace them with a dash when generating the URL from the page title.

Steps to Reproduce
Clarifying Information
The url is mirrored from the page title and goes through a regular expression which matches any special characters or forbidden symbols and replaces them with "-" in the url.
Error Message
Defect/Enhancement Number
In order to configure how page urls are generated from the page Title when creating the page through the Sitefinity backend UI perform the below steps:

1. Log in to the Sitefinity backend
2. Navigate to Administration -> Settings -> Advanced -> ContentView -> Controls -> FrontendPages -> Views -> FrontendPagesCreate -> Sections -> MainSection -> Fields -> urlName
3. Update the regular expression in the RegularExpressionFilter field to match these characters


As an example, using the following RegEx will replace the apostrophe (') with the dash (-) from the page URL when generating the URL from the page title.

4. Save the changes
A regex tool can be used to test the regular expression such as
Last Modified Date11/27/2018 2:00 PM