From 2438ea47a74a921ee8cf9bf2f698a71c07cee46f Mon Sep 17 00:00:00 2001 From: ssnepenthe Date: Wed, 4 Feb 2026 14:15:03 -0700 Subject: [PATCH] Tell wordpress we support url rewriting --- router.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/router.php b/router.php index 8c6daa9..ff05d56 100644 --- a/router.php +++ b/router.php @@ -112,6 +112,8 @@ function ( $url ) { 20 ); +add_filter( 'got_url_rewrite', '__return_true' ); + $_SERVER['SERVER_ADDR'] = gethostbyname( $_SERVER['SERVER_NAME'] ); $wpcli_server_root = $_SERVER['DOCUMENT_ROOT']; // phpcs:ignore WordPress.WP.AlternativeFunctions.parse_url_parse_url