Title: Support permalink structure without leading index.php · Issue #91 · wp-cli/server-command · GitHub
Open Graph Title: Support permalink structure without leading index.php · Issue #91 · wp-cli/server-command
X Title: Support permalink structure without leading index.php · Issue #91 · wp-cli/server-command
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 r...
Open Graph 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 p...
X 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 ...
Opengraph URL: https://github.com/wp-cli/server-command/issues/91
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support permalink structure without leading index.php","articleBody":"## Feature Request\n\n- [x] Yes, I reviewed the [contribution guidelines](https://make.wordpress.org/cli/handbook/contributing/).\n\n**Describe your use case and the problem you are facing**\n\nPossibly related to #56? I'm not totally sure what's going on there since pretty permalinks seem to work just fine.\n\nI 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:\n\n\u003cimg width=\"880\" height=\"414\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/54a92894-20dc-48b7-b64f-038a40651bd6\" />\n\nIt looks like wordpress relies on the [got_url_rewrite function](https://developer.wordpress.org/reference/functions/got_url_rewrite/) to decide whether our server supports url rewriting/pretty permalinks, and if not adds that leading index.php.\n\nhttps://github.com/WordPress/wordpress-develop/blob/0c3e42c238fc2ca907bbe649160598f39267d812/src/wp-admin/options-permalink.php#L79-L81\n\n**Describe the solution you'd like**\n\nFilter `got_url_rewrite` in the router script:\n\n```php\nadd_filter( 'got_url_rewrite', '__return_true' );\n```\n\nAny objections?\n\nAs 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.","author":{"url":"https://github.com/ssnepenthe","@type":"Person","name":"ssnepenthe"},"datePublished":"2026-02-04T20:18:09Z","url":"https://github.com/wp-cli/server-command/issues/91"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e2d94454-63a3-aada-2367-ae6a86877804 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C0C6:8513F:3D78648:50E3631:6AFA27BA |
| html-safe-nonce | ee5782f583bf21a824a871ef2093c1d65bd82487468560d9dd51f41278b652ef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEM2Ojg1MTNGOjNENzg2NDg6NTBFMzYzMTo2QUZBMjdCQSIsInZpc2l0b3JfaWQiOiIyMDYzNjA0NzQyMzkwMTYzMzg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 86811c1f7adee02e657a04cd9a6b8a92fd74af70a6ee31ad4d11cc577f403800 |
| hovercard-subject-tag | issue:3898251983 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/wp-cli/server-command/91/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bc0ff347f7eec1597e113bc31c6ca5ae4e5b83c915c38fb93f59011adf64d63d/wp-cli/server-command/issues/91 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bc0ff347f7eec1597e113bc31c6ca5ae4e5b83c915c38fb93f59011adf64d63d/wp-cli/server-command/issues/91 |
| og:image:alt | 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 p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ssnepenthe |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| turbo-cache-control | no-preview |
| go-import | github.com/wp-cli/server-command git https://github.com/wp-cli/server-command.git |
| octolytics-dimension-user_id | 1570774 |
| octolytics-dimension-user_login | wp-cli |
| octolytics-dimension-repository_id | 11974328 |
| octolytics-dimension-repository_nwo | wp-cli/server-command |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 11974328 |
| octolytics-dimension-repository_network_root_nwo | wp-cli/server-command |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width