Script erstellt
This commit is contained in:
18
index.php
Normal file
18
index.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Laravel - A PHP Framework For Web Artisans
|
||||
*
|
||||
* This file redirects to the public directory
|
||||
*/
|
||||
|
||||
// Redirect to public directory
|
||||
$publicPath = __DIR__ . '/public';
|
||||
|
||||
if (file_exists($publicPath . '/index.php')) {
|
||||
require_once $publicPath . '/index.php';
|
||||
} else {
|
||||
// Fallback if public/index.php doesn't exist
|
||||
http_response_code(500);
|
||||
echo 'Laravel public directory not found. Please check your installation.';
|
||||
}
|
||||
Reference in New Issue
Block a user