Answer the question
In order to leave comments, you need to log in
How to remove public laravel in VirtualHost (does not see internal files)?
Windows Apache
Configured Apache like this
<VirtualHost laravel>
DocumentRoot "C:/www/OpenServer/domains/laravel/public"
DirectoryIndex index.php
<Directory "C:/www/OpenServer/domains/laravel/public">
Allow from all
</Directory>
</VirtualHost>
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question