mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 16:40:05 +01:00
fix wordpress permalinks
This commit is contained in:
@@ -54,6 +54,8 @@ public function frontControllerPath($sitePath, $siteName, $uri)
|
|||||||
return $sitePath.$uri;
|
return $sitePath.$uri;
|
||||||
} elseif (file_exists($frontControllerPath = $sitePath.$uri.'/index.php')) {
|
} elseif (file_exists($frontControllerPath = $sitePath.$uri.'/index.php')) {
|
||||||
return $frontControllerPath;
|
return $frontControllerPath;
|
||||||
|
} else {
|
||||||
|
return $sitePath.'/index.php';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,11 +74,11 @@ function show_valet_404()
|
|||||||
*/
|
*/
|
||||||
$uri = $valetDriver->mutateUri($uri);
|
$uri = $valetDriver->mutateUri($uri);
|
||||||
|
|
||||||
$valetPathInfo = pathinfo($uri);
|
$uriPathInfo = pathinfo($uri);
|
||||||
|
|
||||||
$isPhpFile = false;
|
$isPhpFile = false;
|
||||||
|
|
||||||
if (isset($valetPathInfo['extension']) && $valetPathInfo['extension'] === 'php') {
|
if (isset($uriPathInfo['extension']) && $uriPathInfo['extension'] === 'php') {
|
||||||
$isPhpFile = true;
|
$isPhpFile = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user