[wp-trac] [WordPress Trac] #62538: WordPress does not detect Openbsd httpd for URL rewrites

WordPress Trac noreply at wordpress.org
Fri Nov 22 18:41:12 UTC 2024


#62538: WordPress does not detect Openbsd httpd for URL rewrites
-------------------------+-----------------------------
 Reporter:  openletter   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Permalinks   |    Version:  6.7
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 OpenBSD httpd supports [https://man.openbsd.org/httpd.conf#request 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`:

 {{{#!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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62538>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list