1
0
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:
Adam Wathan
2017-09-30 15:03:05 -04:00
committed by GitHub

View File

@@ -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)