⟵ Resources

Sitefinity PDF Redirection

Wordpress CMS

Introduction

The request is to redirect pdf from the old site url: xxx.com/en/document/sample.pdf to the new Sitefinity site successfully.

By default the pdf uploaded to Documents & Files will adopt the url pattern,

/docs/<provider>/<library_folder>/<file and extension>

We found no way to configure the Documents & Files setting.

What is the workaround?

We found an archive discussion thread shared the possibility and we went ahead to try on.

Basically it uses Page module as the redirection purpose.

 

1/ Head to advanced setting /Sitefinity/Administration/Settings/Advanced,

Under Page setting, we will need to update the “Not allowed page extensions” -> remove the .pdf from the list.

Remove pdf file from Not allowed page extensions screenshot

 

2/ Upload a document, we will need the “URL to file” later when setting up Page

screenshot of URL to file function

 

3/ Setup the Page structure

page structure setup

We will exclude the en and document page from showing in navigation

screenshot of en exclusion

Lastly, for the redirect page, we use sample.pdf as the page name and the url will auto populate as “sample.pdf”

as we had allowed the page extension in step 1.

Tick the “Redirect to another page” and use the “URL to file” from step 2. (You may use the relative path)

Redirect to another page screenshot

The purpose of doing the structuring is to categorize the documents into different path structure.

 

4/ Alternatively, you can also setup 1 redirect page at root with full path as below:

using documents instead of document because the URL "/en/document/sample.pdf" already exists in page: en > document > sample.pdf

screenshot of sample.pdf setup

 

5/ Now visit the url xxx.com/en/document/sample.pdf or xxx.com/en/documents/sample.pdf will redirect you the document!

 

References

 

This article first appeared on hawjeh.com.

Step-by-step guide for Sitecore Commerce 9 installation on your machine

Sitefinity PDF Redirection

Best Email Writing Tips for 2025

Portfolios

Resources

Contact Us

Website Development Company in Singapore white logo
LowCarbonSG Logo
Terms & Conditions | Privacy Policy | Accessibility Statement

Apply Now!

Upload Resume (with a 2mb maximum file size)
Accepted file types: doc, docx, pdf, xps, Max. file size: 2 MB.
This field is for validation purposes and should be left unchanged.