-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Feature Request
- Yes, I reviewed the contribution guidelines.
Describe your use case and the problem you are facing
Possibly related to #56? I'm not totally sure what's going on there since pretty permalinks seem to work just fine.
I am running a wp site locally with wp server. While I can set any arbitrary permalink structure using wp-cli (e.g. /%postname%/), if I want to set the permalink structure in wp-admin it must include a leading index.php:
It looks like wordpress relies on the got_url_rewrite function to decide whether our server supports url rewriting/pretty permalinks, and if not adds that leading index.php.
Describe the solution you'd like
Filter got_url_rewrite in the router script:
add_filter( 'got_url_rewrite', '__return_true' );Any objections?
As far as I can find the only other place got_url_rewrite() is used is in the WP_Debug_Data class to check whether the server supports pretty permalinks.