Changes between Version 3 and Version 4 of Ticket #17048, comment 69
- Timestamp:
- 10/19/2024 10:02:00 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17048, comment 69
v3 v4 3 3 I quickly determined that it would be impossible to do this via any sort of MU plugin, as various approaches tried. 4 4 5 What I thought would work would be doing url rewrites in a proxy in front of WordPress. I use the ''fantastic'' [https://ddev.readthedocs.io/en/stable/ DDEV] tool for local development, which uses Traefik for routing between different locally-hosted projects. I figured out how to use some traefik middlewares with some very fancy regexes to rewrite the response body and headers, and it was working great! 5 What I thought would work would be doing url rewrites in a proxy in front of WordPress. I use the ''fantastic'' [https://ddev.readthedocs.io/en/stable/ DDEV] tool for local development, which uses Traefik for routing between different locally-hosted projects. I figured out how to use some traefik middlewares with some very fancy regexes to rewrite the response body and headers, and it was working great! I could log in via various URLs provided by Cloudflare Tunnels, create posts and pages, etc... 6 6 7 Then, I started noticing edge cases - Gutenberg sending full URLs when submitting posts with internal links, issues with Media , etc...7 Then, I started noticing edge cases - Gutenberg sending full URLs when submitting posts with internal links, issues with Media not showing up in Gutenberg editor, etc... 8 8 9 9 I set up the middlewares to rewrite request headers and body as well, and got past those edge cases. Then other issues came up.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)