Remove index.php from permalink structure from WordPress Playground site.#721
Conversation
|
|
||
| // Activate URL rewriting. | ||
| await this.php.writeFile( | ||
| `${this.wordpressPath}/wp-content/mu-plugins/got-url-rewrite.php`, |
There was a problem hiding this comment.
Let's rename the file to 4-enable-url-rewrite.php so that the name communicates the purpose
|
This is great @torounit, thank you so much for contributing this! It works pretty well in my testing:
I only left one nitpicky comment. |
|
@adamziel Thank you for reviewing! This problem also occurs in vscode extension and wp-now. Should they be fixed in WordPress/playground-tools ? |
|
@torounit thank you!
In a short term, yes. In a medium term, I'd like these patches to be applied much more granularly as right now they're mushed together inside a single |


What is this PR doing?
Remove index.php from permalink structure.
What problem is it solving?
The WordPress playground supports rewrite. URLs like nginx and apache can achieve this.
How is the problem addressed?
add
add_filter( 'got_url_rewrite', '__return_true' );to mu-plugins.Testing Instructions