📅  最后修改于: 2022-03-11 14:52:56.779000             🧑  作者: Mango
For Laravel 5:
Rename server.php in your Laravel root folder to index.php
Copy the .htaccess file from /public directory to your Laravel root folder.
That's it!
But this will make your system vulnerable
------------------------------------
all you need to do is to put this code into the .htaccess file in
public
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L,QSA]
---------------------------------------
if it doesn't work just put a file namely index.html in root directory
and in side it put a script code
like