Make WordPress Core

Changes between Version 3 and Version 4 of Ticket #17048, comment 69


Ignore:
Timestamp:
10/19/2024 10:02:00 PM (2 years ago)
Author:
nickchomey

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17048, comment 69

    v3 v4  
    33I quickly determined that it would be impossible to do this via any sort of MU plugin, as various approaches tried.
    44
    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!
     5What 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...
    66
    7 Then, I started noticing edge cases - Gutenberg sending full URLs when submitting posts with internal links, issues with Media, etc...
     7Then, 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...
    88
    99I set up the middlewares to rewrite request headers and body as well, and got past those edge cases. Then other issues came up.