1
I need to deploy for production of an application that I migrated to Aravel 5.4, in test environment I am using the virtual host in windows where I type in the url 'meusite1' and until then beauty.
But when I went to set up with the . htaccess when accessing the application by the url 'meusite1' the ajax files for example lose the reference and point to the Documentroot which in the case is htdocs and not htdocs meusite1, and so require to write in the code of an image for example: 'meusite1/img/banner.png' and not just 'img/banner.png'
As I am working with two applications I used the link response Laravel 5 - Remove public from URL
I configured apache Virtualhosts like this: ServerAdmin [email protected] Documentroot "/htdocs"
Alias /meusite1 "/htdocs/meusite1/public" Options Indexes Followsymlinks Includes Execcgi Allowoverride All Require all granted
Alias /meusite2 "/htdocs/meusite2/public" Options Indexes Followsymlinks Includes Execcgi Allowoverride All Require all granted
In the . htaccess file of the public folder inside my meusite1 it looks like this: Options -Multiviews
Options +FollowSymLinks
RewriteEngine On
RewriteBase /meusite1
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
Could someone give me a glimpse of where I’m going wrong?
Possible duplicate of Project directory list in Laravel is displayed instead of running the application
– Guilherme Nascimento