Friendly URL for PDF file

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
9/20/2018 12:05:12 PM
Gravatar
Total Posts 21

Friendly URL for PDF file

Is it possible to have a friendly url for a pdf file? I have a URL that looks like this: https://www.sitename.com/data/sites/1/media/subfolder/filename.pdf and I want it to look like this: https://www.sitename.com/filename.pdf. I tried to use the URL manager to create this but it doesn't work.

Thanks.

9/20/2018 9:33:27 PM
Gravatar
Total Posts 2239

Re: Friendly URL for PDF file

Hi Julie,

You should be able to create a Friendly URL for this using the URL Manager.

  1. Go to Administration > Advanced Tools > URL Manager
  2. Fill out the fields in the form, indicated in this screenshot:
    1. use data/sites/1/media/subfolder/filename.pdf
    2. use filename (note, you cannot use .pdf unless you have IIS configured to handle all files, not just ASP.net files)
  3. Click the "Add New Url Mapping" button next to the field marked '2' above.

Thanks,
Joe

9/27/2018 3:56:00 PM
Gravatar
Total Posts 21

Re: Friendly URL for PDF file

Thanks Joe! It worked!

You must sign in to post in the forums. This thread is closed to new posts.