Redirects on Uploaded Files

Keller_Hawthorn
New Member
2 0 0

We're almost finished setting up redirects for our old pages (just transferred to Shopify). We have a few links left, all of which are PDF's. The problem is when we upload these PDF's to the file section, they are uploaded with a URL that starts with:

http://cdn.shopify.com/s/files/1/0403/5641/files/THEPDF.pdf

Since the redirect functionality in Shopify seems to be quite limited (not allowing bulk redirects and forcing you to use the domain of the store, I'm not sure how to set up a redirect for the file above.

For example:

A redirect for About Us would look like this:

http://www.ourdomain.com/OLD-about-us

TO

http://www.ourdomain.com/about-us

A redirect for the PDF above would look like this:

http://www.ourdomain.com/OLD.pdf

TO 

http://www.ourdomain.com/http://cdn.shopify.com/s/files/1/0403/5641/files/THEPDF.pdf

0 Likes
Matthew_Buttler
Shopify Staff (Retired)
Shopify Staff (Retired)
955 1 60

Hey Keller,

Actually, this is a common misconception that I should bring up with our admin developers. While it appears that you have to use your domain as a prefix, if you enter a path with an http prefix, it'll point to that URL instead. So it's actually more like:

http://ourdomain.com/old.pdf

to

http://cdn.shopify.com/s/files/1/0195/5922/files/new.pdf

 

Let me know what you think!

Matthew Buttler
Guru
Shopify Inc.

 

0 Likes
Keller_Hawthorn
New Member
2 0 0

Well, that's good to know! Thank you.

0 Likes
ericTreeLight
Excursionist
21 2 2

Mathew! Thanks for your help on this. I have a similar issue, but it involves redirecting an uploaded file.

When I go to Settings > Files, there is no way to replace a file at an existing URL.

 

That forces me to delete the old file and upload a new one. (I use this strategy to give people links
in return for subscribing.)

 

But when I upload the new file, delete the old one, and set up a redirect, the old link just keeps working!
Is that because it takes a while for the delete to take effect? (I'm guessing it's in the cache. How often
is that updated?)

 

thanks again!

JMDev
New Member
1 0 1

Okay, but how to redirect one file from http://cdn.shopify...   to other http://cdn.shopify...   ?

Same here, need to redirect an old image file to a new one, both on the Shopify CDN. How is this accomplished?

Monster, creature & cryptozoology patches, buttons & stickers.
Laura37
New Member
1 0 0

Hi there, 

I too would like to know how to redirect a curent file link to a new one , i have a large volume of product and do not want to update each page individually.

Any help would be amazing 

0 Likes

Hi everybody,

good point - we have the same issue!

Is there any update to redirect from cdn to cdn?

Alternatively from cdn to a shopify url?

Thanks in advanced.

 

bersiserlini
New Member
2 0 0

Hi there! Same issue here... Hope someone figures it out!

0 Likes