• Sitefinity Tips

Redirecting URLs

Mia E Lee
Mia Ellis-Lee
Design & Frontend Development
Write to Mia
Share

Sitefinity has a number of methods for adding redirecting URLs, suitable for a variety of purposes. In this post, I’ll take you through the method for of adding redirection URLs for a specific page as well as creating a page specifically to redirect to another URL.

Adding Redirection URLs for a Specific Page

Adding redirection URLs for a specific page can be handy in a wide variety of circumstances. For instance, if you had a page that has been published for a while under the URL of yourdomain.com/my-example and you wanted to change the URL to yourdomain.com/example, this method would allow you to change your URL to /example while allowing for links to /my-example to redirect to the same page and prevent your users from receiving a 404 “Not Found” error.

  1. Navigate to the page listing in the Sitefinity back end
    An image indicating the location of

  2. Click on the “Actions” dropdown for your desired page, and select “Title & Properties”.
    A screenshot of the Sitefinity page listing with the

  3. In the subsequent page, select the checkbox that reads “Enable Multiple URLs for this page”
    A screenshot of the

  4. Add your desired URLs in the field below the aforementioned checkbox. Each URL must be on a separate line. Also, each URL must be preceded with “~”. This character (known as a tilde) denotes the home directory. In our example from before, “~” would represent “yourdomain.com”. If we wanted to add an alternate URL of “/my-example”, the URL in this text field would read “~/my-example”.
    A screenshot that indicates the Additional URLs field in the list of page properties

  5. Click the green “Save” button at the bottom of the page.

  6. Your page will now be accessible through its URL and its alternate URLs.

Redirection Page

In some cases, you’ll want a page that serves only to redirect to another page and does not contain any content of its own. Fortunately, Sitefinity makes this incredibly easy to implement.

  1. Navigate to the page listing in the Sitefinity back end.
    An image indicating the location of

  2. In the top left corner, click the “Create a Page” button or click on the “Actions” dropdown and select “Title & Properties” depending on if you want to create a new redirecting page or if you want to set an existing page as a redirecting page.

  3. In the page that appears following step 2, select the checkbox that reads “This page redirects to another page”.
    A screenshot of a page's properties in Sitefinity. The option to set the page as a redirection page is highlighted.

  4. Click the button below that reads “Set page to redirect to”.
    A screenshot of a page's properties in Sitefinity. The option to specify the redirection location is highlighted. 

  5. You can now select whether you’d like to redirect to a “Page from this site” or a “web address”. Selecting the first option will present you with a list of pages on your site. This is the recommended method of redirecting to an internal page, as this will ensure that the link will still work, even in the event that you change the URL of the page you are redirecting to. Selecting the second option will present you with a text field where you can enter in your desired URL (usually external URLs). This second option will also present you with a checkbox that reads “Open this link in a new window”. Selecting this will cause the link to open in a new browser window rather than the existing one.
    A screenshot of the

    A screenshot of the

  6. Click “Done” at the bottom of the page to save your changes.

Back to Top Arrow Up