Skip to content

Commit 78fdcea

Browse files
authored
Merge pull request #92 from ssnepenthe/permalinks-wo-index
Tell WordPress we support URL rewriting
2 parents dca9d9e + 2438ea4 commit 78fdcea

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

router.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ function ( $url ) {
112112
20
113113
);
114114

115+
add_filter( 'got_url_rewrite', '__return_true' );
116+
115117
$_SERVER['SERVER_ADDR'] = gethostbyname( $_SERVER['SERVER_NAME'] );
116118
$wpcli_server_root = $_SERVER['DOCUMENT_ROOT'];
117119
// phpcs:ignore WordPress.WP.AlternativeFunctions.parse_url_parse_url

0 commit comments

Comments
 (0)