Streaming live at 10am (PST)

PDF File Link URL

Is there a way to change the pdf file link that appears in the browser

From:
https://uploads-ssl.webflow.com/FILE-NAME.pdf

To:
https://MY-WEBSITE.com/FILE-NAME.pdf

In other words, removing the Webflow reference…

Hi @craigb welcome to the community :grin::+1:

At this time you cannot change the URL for file names since they are uploaded to a CDN for fast loading speeds.

Not exactly ‘whitelabel.’

Thanks for taking the time to respond.

2 Likes

Hey @craigb @PixelGeek , actually you could with 301 redirect i think ?

But it will only make https://MY-WEBSITE.com/FILE-NAME.pdf redirect to https://uploads-ssl.webflow.com/FILE-NAME.pdf2 but not rewriting it.
I guess that works if your use case is writing the link on a flyer or something.
301 redirects are in Hosting tab in settings.

In this case, your old path is https://MY-WEBSITE.com/FILE-NAME.pdf and the new one https://uploads-ssl.webflow.com/FILE-NAME.pdf2
Hope this helps,

Hi @zbrah - thanks for the response.

This could possibly work, but is not really what we are looking for - for privacy reasons we need to remove the Webflow reference from the URL.

Also - This particular site will contain 500+ links, so adding a redirect for each file is not really practical.

I understand :frowning: @craigb
In case you finally do this option, i have a keyboard maestro macro to copy paste in the 301 redirect panel.
(I’ve done it for + 1500 redirect, worked well). Just ask if you need it.
Have a great day,

Will let you know if we need it. Thanks for the generous offer @zbrah, much appreciated!

1 Like

I tried your suggestion as I’m trying to direct a PDF file link to a new webpage - is this something that is possible? Our restaurant created & printed static QR codes with a link specific to the PDF doc and now of course there have been some menu changes so I’m trying to redirect the document URL to a new page I’ve created that has the menus so they can be updated as needed without having to reprint all of our QR code stickers…

This is the link I need to have redirected but it won’t let me put the entirety of the filepath in the 301 redirect text box:

@ngross - You can’t implement redirects on file assets since they are hosted on a separate domain. You can have redirects on objects or paths relative to your site domain.

Example;
/menu.pdf redirects to https://uploads-ssl.webflow.com/5f16042780b03fa85c225f0d/5f5fe77d63a4bed4a03485ab_Cafe%20Whitney%20Menus%20PDF.pdf

That way when the menu is updated you update the redirect too. Of course anyone going to an old direct link will not get a new file. The better choice would be to host the asset yourself (third party) and replace as needed which is what I recommend when dealing with assets that get frequent updates.