I've seen a lot of similiar topics and I tried all of them and previously it worked, every time different one, but now nothing...
So I want to remove /public from my URL and it works for laravel-public_html but not for build version
I'm using VPS (CentOS 7 with CWP 7)
My structure is like this:
/home/admin/
-laravel
-public_html (public folder for laravel)
-laravel_build
-build (public folder for laravel_build)
and with that I have build.mypage.com and www.mypage.com
httpd.conf
...
ServerRoot "/usr/local/apache"
...
DocumentRoot "/home/admin/public_html"
<Directory "/home/admin/public_html">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
index.php (public_html)
require __DIR__.'/../laravel/bootstrap/autoload.php';
$app = require_once __DIR__.'/../laravel/bootstrap/app.php';
index.php (build)
require __DIR__.'/../laravel_build/bootstrap/autoload.php';
$app = require_once __DIR__.'/../laravel_build/bootstrap/app.php';
Should I add something in .htaccess , and if yes, where do I need to put that .htaccess?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire