Make WordPress Core


Ignore:
Timestamp:
02/13/2024 10:06:22 AM (2 years ago)
Author:
swissspidy
Message:

Permalinks: Detect Caddy web server support.

Support pretty permalinks when Caddy server is detected.

Props swissspidy, mukesh27, sadpencil, cfinnberg, viliamkopecky.
Fixes #41877.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/misc.php

    r57595 r57612  
    4040 *
    4141 * @global bool $is_nginx
     42 * @global bool $is_caddy
    4243 *
    4344 * @return bool Whether the server supports URL rewriting.
    4445 */
    4546function got_url_rewrite() {
    46     $got_url_rewrite = ( got_mod_rewrite() || $GLOBALS['is_nginx'] || iis7_supports_permalinks() );
     47    $got_url_rewrite = ( got_mod_rewrite() || $GLOBALS['is_nginx'] || $GLOBALS['is_caddy'] || iis7_supports_permalinks() );
    4748
    4849    /**
Note: See TracChangeset for help on using the changeset viewer.