Hi All,
We keep seeing issues on our platform in that when we switch to litespeed users with 301 redirects often see them stop working. Upon checking the redirects they are using the correct regex so should work yet they don't for some reason. The most recent was a user who had a number of 301 redirects for their store, two of which are below:
What was happening is that while this used to work in Apache, the switch to litespeed was causing the redirect to malform into:
/shop/index.php?cPath=57adele-marie-designer-earrings-60/
This seemed to be because the first redirect wasn't using the regex to match only "/shop/designer-clip-on-earrings-57/" as such I modified it as follows:
Now from my understanding that should do the trick and while the other redirects work fine now it seems the redirect for the base directory "/shop/designer-clip-on-earrings-57/" no longer functions and simply 404's. I can't see why this would fail as the redirect should be correct but for some reason it just doesn't acknowledge or run the redirect at all.
Any suggestions on this would be appreciated!
Regards,
Chris.
We keep seeing issues on our platform in that when we switch to litespeed users with 301 redirects often see them stop working. Upon checking the redirects they are using the correct regex so should work yet they don't for some reason. The most recent was a user who had a number of 301 redirects for their store, two of which are below:
Code:
Redirect 301 /shop/designer-clip-on-earrings-57/ /shop/index.php?cPath=57
Redirect 301 /shop/designer-clip-on-earrings-57/adele-marie-designer-earrings-60/ /shop/index.php?cPath=57_60
/shop/index.php?cPath=57adele-marie-designer-earrings-60/
This seemed to be because the first redirect wasn't using the regex to match only "/shop/designer-clip-on-earrings-57/" as such I modified it as follows:
Code:
Redirect 301 ^/shop/designer-clip-on-earrings-57/?$ https://www.DOMAINREMOVED.co.uk/shop/index.php?cPath=57
Redirect 301 /shop/designer-clip-on-earrings-57/adele-marie-designer-earrings-60/ /shop/index.php?cPath=57_60
Any suggestions on this would be appreciated!
Regards,
Chris.