It looks like you have not got the document root for you laravel application setup correctly on the web server, there is not need to change the .htaccess for this.
If you could provide a little more info on the env your running eg apache or nginx i can point you in the right direction
gmann1982 said:
It looks like you have not got the document root for you laravel application setup correctly on the web server, there is not need to change the .htaccess for this.
If you could provide a little more info on the env your running eg apache or nginx i can point you in the right direction
Thanks for your reply - it sounds possible that the root is wrong, though I've not done anything different other than the default, and then try some .htaccess options. The server is running Apache.
can you please provide the vhost for that specific app your trying to run?
gmann1982 said:
can you please provide the vhost for that specific app your trying to run?
I hope I've understood correctly... here's the directory of the "home" Laravel project:
/var/www/vhosts/chill-pill.com/home/
and in that folder you have a public folder?
You need to updated the document root for the vhost of that domain to /var/www/vhosts/chill-pill.com/home/public
SImply your question is how to remove public from url steps :
1 : you have one file in your root directory named : server.php
rename it to index.php
2 : you have .htaccess file in root/public directory
copy this file to your root directory
Notes : now wherever you use asstes you have to add public before url.
marilians liked this reply
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community