We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How can I create a wildcard redirect in Shopify for old user images?

How can I create a wildcard redirect in Shopify for old user images?

Christian121223
Shopify Partner
9 0 6

Hello,

 

I have been working on the store switch to Shopify for around 3 months. One of the main problems that has kept me from Shopify so far was that I unfortunately have old user images in a subfolder, that need to be redirected. I thought I had a solution (how wrong I was).

 

e.g.

https://www.auktionsvorlage-pro.de/editor/resources/user-images/1/101/abcdef...xyz.jpg 

 

I sell eBay templates and have been offering my customers an online editor to create listings in HTML form since 2016. The HTML code, once installed in an eBay listing, contains image links like in the example above, hard coded of course. Over the years I have improved my service so that for over 2 years all images are output via a CDN domain.

 

e.g.
https://public.cdn-auctiofy.com/user/1/101/abceddfd...xyz.jpg

 

So for users who have been using my service for 2 years or less, this is all okay. There I can work flexible and have no forwarding problem at all.

 

--> BUT <--
There are still about 600.000 pictures in the "old" format on various eBay offers.

 

I put my domain (before the store change) on Cloudflare and added Pages-Rules. So far so good. Unfortunately, after I redirected my domain (the DNS A entry) in Cloudflare to the Shopify IP, I noticed that the Pages Rules no longer work.

 

Currently I have no way at setting up a wildcard redirect that would look something like this:

 

From:
https://www.auktionsvorlage-pro.de/editor/resources/user-images/1/101/abcdef...xyz.jpg

 

to:
https://public.cdn-auctiofy.com/user/1/101/abceddfd...xyz.jpg

 

Redirect on Shopify:
I figured, well, I'll just add all ~600,000 redirects at Shopify. Wrong! I can create a maximum of 100,000 redirects.

Also, I can't (and this is something I don't understand at all) create a wildcard redirect in Shopify:

 

The following wildcard redirect would help me incredibly:
/editor/resources/user-images/* => https://public.cdn-auctiofy.com/user/*

 

To clarify something up front:
All the apps active on the Shopify market do not help me one bit in my case, as they all work in the same way. A javascript code is installed on the 404 page and redirected to the respective app via an ajax call, and then a redirect is created via Shopify API. Of course, there is also the limit of 100,000 redirects.

 

Questions to Shopify Support:
- Can you guys create a wildcard redirect for me?
- If not, could you increase the redirect limit to 600,000 for me?
- Is there any way that I can use my Pages rules in Cloudflare?

 

I think this is a problem that many users have and will have. Surely the possibility of proper redirects must be there?

 

I would hate to switch back to my old Prestashop, I am really excited about Shopify. The release took me 3 months of work and I didn't think redirects would be a problem, as I was sure Cloudflare page rules would kick in 😕

 

I would be very grateful for a proper solution and help, I have really tried everything.

Reply 1 (1)

Tobbe-A
Visitor
1 0 0

*Watching*