Make WordPress Core

Opened 8 weeks ago

Last modified 7 weeks ago

#62538 new enhancement

WordPress does not detect Openbsd httpd for URL rewrites

Reported by: openletter's profile openletter Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.7.1
Component: Permalinks Keywords:
Focuses: Cc:

Description

OpenBSD httpd supports request rewrites but WordPress only supports rewrites for Apache, NGINX, Caddy, and IIS.

I have confirmed that OpenBSD httpd rewrite rules support pretty permalinks by including the following line at the bottom of the server configuration:

location not found "/*" {
	request rewrite "/index.php?$REQUEST_URI"
}

And by adding the following to the Twenty Twenty-Five functions.php:

function wpse427660_got_rewrite() {
    return true;
}

add_filter( 'got_url_rewrite', 'wpse427660_got_rewrite' );

The above code is not presented as a proposed solution but to demonstrate that the server can support rewrites sufficiently for WordPress to use pretty permalinks.

Change History (1)

#1 @openletter
7 weeks ago

  • Version changed from 6.7 to 6.7.1
Note: See TracTickets for help on using tickets.