Google Friendly URL's...

Anthony Critchley asked on December 29, 2017 17:08

Hi

I was wondering if anyone can help.

When we add pdf documents for download from our website, we seem to have a large URL string, which isn't particularly Google friendly, such as :

/getattachment/14ece931-79e1-4566-9363-5eabbdd2f32a/AA-Inspection.aspx

With the example above, how would it be possible so the URL read? :

/downloads/AA-Inspection.pdf

Kind Regards

Anthony

Correct Answer

Trevor Fayas answered on December 29, 2017 20:01

If you use the attachments, for the most part it needs that long url so it can find the right attachment data.

An option is to store the PDF in the media library instead, so you can control the path, you do lose the ability to index the file content with that though.

Other option is to store the file as a file object on the tree, CMS.file, this way you can point to the node on the tree and it will give the file itself.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Anthony Critchley answered on January 3, 2018 18:31

Thanks Trevor for the quick answer

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.