How can I change my file share link to my own domain link?

Topic summary

A user wants to replace Shopify’s default CDN URLs (cdn.shopify.com) with their own custom domain for file sharing links.

Initial Responses:

  • One participant suggested this wasn’t possible through Shopify admin and recommended third-party hosting services like GoDaddy connected to a subdomain.
  • A related question emerged about including HTTPS links for images in Shopify theme JSON files.

Working Solution:
A participant provided a practical workaround:

  • Replace “cdn.shopify.com” with your Shopify store domain
  • Use the path structure: your-domain.com/cdn/shop/files/filename
  • Ignore the middle directory numbers (e.g., “/s/files/1/0717/8770/8637/”)

Example transformation:

  • Original: cdn.shopify.com/s/files/1/.../filename.jpg
  • Modified: your-domain.com/cdn/shop/files/filename.jpg

This solution was confirmed as working by another user. The discussion appears resolved with a functional method that doesn’t require external hosting.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

Hello,

I would like to change the share link of files I have uploaded on shopify. Now the link in shown like this:

https://cdn.shopify.com/s/files/1/0763/7998/0120/products/fifine-am8-xlrusb-dynamic-microphone-featuring-rgb-light-click24-902863.jpg?v=1709157094

I need the link to become like this:

https://my-domain/s/files/1/0763/7998/0120/products/fifine-am8-xlrusb-dynamic-microphone-featuring-rgb-light-click24-902863.jpg?v=1709157094

Is there any app or way to be able to share the uploaded files with my domain insted of cdn.shopify.com

Thank you!

Kind regards Armin

Unfortunately, there’s no way to change those URL’s for files that you’ve uploaded via the Shopify admin.

Your only real option here would be to get third-party hosting, and then connect that to a subdomain, or separate domain name used purely for sharing files.

You could try something like GoDaddy’s Web Hosting: https://www.godaddy.com/en-ca/hosting/web-hosting

Hi @StephensWorld ,

It seems like Shopify theme JSON file does not allow us to directly include HTTPS links for our images. How do we fix this?

Thank you.

You can just use your domain + /cdn/shop/files/ + filename to do this.

1 Like

Hi,

https://cdn.shopify.com/s/files/1/0717/8770/8637/files/YTPUB003_01.jpg?v=1726829995&width=990

How can I rename it?

thank you

Hanni

Hi

Have you resolved the problem?

Thank you

Hanni

1 Like

https://Your-Shopify-Domain.com/cdn/shop/files/YTPUB003_01.jpg?v=1726829995&width=990

In your case, ignore “/s/files/1/0717/8770/8637/” and replace “cdn.shopify.com” with the domain you use for the Shopify site.

The other replies in this thread are incorrect.

2 Likes

This was exactly what I needed. Thank you so much!