Skip to content

Commit 6192e6d

Browse files
authored
Merge pull request #35 from wp-cli/30-no-htaccess
Document lack of support for `.htaccess` files
2 parents 7b3f3f1 + f13e67d commit 6192e6d

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ wp server [--host=<host>] [--port=<port>] [--docroot=<path>] [--config=<file>]
1616
Uses `php -S` to launch a web server serving the WordPress webroot.
1717
<http://php.net/manual/en/features.commandline.webserver.php>
1818

19+
Importantly, PHP's built-in web server doesn't support `.htaccess` files.
20+
If this is a requirement, please use a more advanced web server.
21+
1922
**OPTIONS**
2023

2124
[--host=<host>]

src/Server_Command.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ class Server_Command extends WP_CLI_Command {
88
* Uses `php -S` to launch a web server serving the WordPress webroot.
99
* <http://php.net/manual/en/features.commandline.webserver.php>
1010
*
11+
* Importantly, PHP's built-in web server doesn't support `.htaccess` files.
12+
* If this is a requirement, please use a more advanced web server.
13+
*
1114
* ## OPTIONS
1215
*
1316
* [--host=<host>]

0 commit comments

Comments
 (0)