I currently have a WAMP server running with 2 sub-folders, one contains a Laravel project with a public folder.
I don't want to create a .htaccess
file to redirect from /laravel
to /laravel/public
.
Instead I want to change the redirection in the vhost
file from Apache. I know how to redirect the root folder of WAMP (www) to Laravel's public folder, but what I want is:
Whenever I go to WAMP's root, I'll still see a list with folders like it normally does.
When I go to the
/laravel
directory it gets automatically redirected to/laravel/public
.
This is how I currently have it in the httpd-vhosts.conf
file.
But this does not seem to work for me and when I switch the place of those 2 I'll get automatically sent to the public folder without being able to view the www folder.
I already tried to google it but only ended up with how to redirect the www root to a sub-folder.
So my question is: How to redirect the root of a sub.folder to a i.e. public folder?