[wp-trac] [WordPress Trac] #60884: Caddy server / FrankenPHP got_url_rewrite support
WordPress Trac
noreply at wordpress.org
Tue Apr 2 15:59:25 UTC 2024
#60884: Caddy server / FrankenPHP got_url_rewrite support
-------------------------------+-----------------------------
Reporter: stephenmiracle | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: php-compatibility |
-------------------------------+-----------------------------
Caddy + FrankenPHP officially supports url rewriting, but it doesn't show
in WordPress permalinks due the logic in this function: got_url_rewrite. I
had to create a mu plugin to get the permalink backend to show as expected
(removing index.php) by creating a filter.
I would like to extend this function to allow for this setup by explicitly
checking for Caddy or checking for a server value that we can set.
right now, it checks for $_GLOBALS['is_nginx'] or $_SERVER values in iis7
function. I'd like to see a $_SERVER['has_rewrite'] flag that I can set
in Caddy or add a flag for $_SERVER[SERVER_SOFTWARE] => FrankenPHP .
I have created a sample branch of my own that could implement either and
would be willing to submit for review
Thanks.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60884>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list