I’m working on a headless Shopify site:
It’s an existing site that focused on ladies golf products, and are now rebranding and doing mens products as well.
As such the domain will change when the site goes live, so I want to set up redirects.
Since the site now sells ladies and mens products, the URL structure has also changed (ladies products are under /ladies/
and mens are under `/mens/).
Here is what I have so far:
https://golfladiesfirst.com.au/* https://www.glfonline.com.au/:splat 301!
https://glfonline.com.au/* https://www.glfonline.com.au/:splat 301!
/collections/* /ladies/collections/:splat 301!
# /products/* /ladies/products/:splat 301!
/pages/about-us /about/ 301!
/pages/home-about /about/ 301!
/pages/home-about-intro /about/ 301!
/pages/contact-us /contact/ 301!
/pages/home-pro-tips /contact/ 301!
/pages/faqs /faq/ 301!
/pages/privacy-policy /privacy-policy/ 301!
/pages/refund-policy /refund-policy/ 301!
/pages/terms-and-conditions /terms-and-conditions/ 301!
/pages/testimonials /testimonials/ 301!
/products/daily-sports-polo-uma /ladies/products/dailysportspolouma/ 301!
/products/jamie-sadock-polo-js91135 /ladies/products/jamiesadockpolo-js91135-smleft/ 301!
/products/daily-sports-skort-magic-45cm /ladies/products/dailysportsmagicskort45cm/ 301!
/products/bermuda-sands-polo-margie /ladies/products/bermudasandspolomargiepear/ 301!
/products/corsican-polo-ghz-ss-aurora /ladies/products/corsicanghzssaurorapolo/ 301!
/products/greg-norman-pull-on-skort-g2s20h508-navy /ladies/products/gregnormanpull-onskortg2s20h508navy/ 301!
/products/nivo-ladies-golf-polo-ni8210100-lagoon /ladies/products/nivopolonatashalagoon/ 301!
I’ve commented out /products/* /ladies/products/:splat 301!
as it was causing issues.
What I wanted to do was redirect all traffic coming from the old website to a product to be redirected to have /ladies/
at the beginning of the URL except for a handful of products which have had their handles changed in the CMS. Is there a way to do this without the /products/*
taking precedence?