URL Rewrites that begin with letters "pub" fail to rewrite/redirect #39755
Labels
Area: SEO
Component: UrlRewrite
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Priority: P2
A defect with this priority could have functionality issues which are not to expectations.
Reported on 2.4.x
Indicates original Magento version for the Issue report.
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
Triage: Dev.Experience
Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Preconditions and environment
Steps to reproduce
To reproduce:
Add URL Rewrite with:
Expected result
https://exampleurl.com/public-facing-url-that-breaks-sad-cry loads the product defined by Target Path
Actual result
https://exampleurl.com/public-facing-url-that-breaks-sad-cry does not the product defined by Target Path and fails with a 404 error page
Additional information
knowing how there are both apache .htaccess rewrites plus magento rewrites, it can get a bit messy to figure out where the issue is happening. we were able to trace the problem back to some very old laminas code in: vendor/laminas/laminas-http/src/PhpEnvironment/Request.php
This is the fix we implemented to get things working as one possible option though it does mean we will now have to re-apply the patch after each deployment to ensure it doesn't revert, so perhaps there is a better way you all can come up with to solve for this issue.
Maybe there's a more robust or alternative option to fix this more elegantly. Thanks!
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: