Opened 22 months ago
Last modified 22 months ago
#62538 new enhancement
WordPress does not detect Openbsd httpd for URL rewrites
| Reported by: | openletter | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Permalinks | Version: | 6.7.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)