1

For some reason the PDF files (that are uploaded on media library) are shown as *.ashx when referencing from RTE etc.

Is there a way to show *.pdf instead so that it's user/seo friendly?

Thanks.

1 Answer 1

4

You need to change bellow setting from ashx to empty string.

<setting name="Media.RequestExtension" value="ashx" />

will be

<setting name="Media.RequestExtension" value="" />
4
  • Thanks. Also, we would like to show the actual media name instead of guid. myfile.pdf instead of 121212121211.ashx.
    – Nil Pun
    Feb 1, 2017 at 11:04
  • do you have guid on frontend or just when you open RTE ? Feb 1, 2017 at 11:13
  • Front end after page is rendered
    – Nil Pun
    Feb 1, 2017 at 11:18
  • 1
    @NilPun please open another question for this - it is extra to the first question which has been answered. Thanks
    – Richard Seal
    Feb 1, 2017 at 14:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.