We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 572533b commit d651069Copy full SHA for d651069
1 file changed
public/index.php
@@ -13,9 +13,15 @@
13
use Yiisoft\Yii\Web\SapiEmitter;
14
use Yiisoft\Yii\Web\ServerRequestFactory;
15
16
-// PHP built-in server should serve static files as is
17
-if ((PHP_SAPI === 'cli-server') && is_file(__DIR__ . $_SERVER["REQUEST_URI"])) {
18
- return false;
+// PHP built-in server routing.
+if (PHP_SAPI === 'cli-server') {
+ // Serve static files as is.
19
+ if (is_file(__DIR__ . $_SERVER["REQUEST_URI"])) {
20
+ return false;
21
+ }
22
+
23
+ // Explicitly set for URLs with dot.
24
+ $_SERVER['SCRIPT_NAME'] = '/index.php';
25
}
26
27
$c3 = dirname(__DIR__) . '/c3.php';
0 commit comments