mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 00:20:08 +01:00
Merge pull request #426 from christian-thomas/patch-1
Set SERVER_NAME variable for WordPress (Bedrock) driver
This commit is contained in:
@@ -48,6 +48,7 @@ public function isStaticFile($sitePath, $siteName, $uri)
|
||||
public function frontControllerPath($sitePath, $siteName, $uri)
|
||||
{
|
||||
$_SERVER['PHP_SELF'] = $uri;
|
||||
$_SERVER['SERVER_NAME'] = $_SERVER['HTTP_HOST'];
|
||||
|
||||
if (strpos($uri, '/wp/') === 0) {
|
||||
return is_dir($sitePath.'/web'.$uri)
|
||||
|
||||
Reference in New Issue
Block a user