URL Redirects Not Working – Returning ERROR 400 Bad Request

URL Redirects Not Working – Returning ERROR 400 Bad Request

Kranthi_Rayudu
Shopify Partner
2 0 0

For context, we migrated our store from PHP to Shopify two months ago.

The URL redirects are set up as shown in this image
Our website's old PHP URLs are configured in the "Redirect from" field, and the new Shopify page URLs are added in the "Redirect to" field:

Redirect from: /breakthrough.php
Redirect to: /collections/massage-chairs

To clarify, I’m referring specifically to path-based redirects, not domain-level redirects.

Ideally, when URL redirects are properly configured, accessing https://medicalbreakthrough.com/breakthrough.php should redirect the user to https://medicalbreakthrough.com/collections/massage-chairs.

This used to work as expected but is now returning an "ERROR 400 Bad Request."

I’d really appreciate help from someone who is familiar with Shopify’s redirect functionality to help resolve this issue.

Replies 2 (2)

pawankumar
Shopify Partner
754 111 128

Hi @Kranthi_Rayudu 
After setting redirects, it takes some time to take into effect.
Please check after some time and it should work fine

Thanks!

- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan
Kranthi_Rayudu
Shopify Partner
2 0 0

Hi @pawankumar, this issue is now resolved. Apparently, there was a widespread configuration issue on Shopify servers related to .php file extensions or specific legacy paths. The Shopify server was returning a 400 error when a redirect URL contained a .php extension.