diff --git a/drivers/StatamicValetDriver.php b/drivers/StatamicValetDriver.php index 057e1fe..f95b641 100644 --- a/drivers/StatamicValetDriver.php +++ b/drivers/StatamicValetDriver.php @@ -48,6 +48,8 @@ public function isStaticFile($sitePath, $siteName, $uri) */ public function frontControllerPath($sitePath, $siteName, $uri) { + $_SERVER['SCRIPT_NAME'] = '/index.php'; + if (file_exists($indexPath = $sitePath.'/index.php')) { return $indexPath; }