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.

Hi

Have you resolved the problem?

Thank you

Hanni

1 Like