You can just use your domain + /cdn/shop/files/ + filename to do this.
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.
1 Like