Laravel 4 removing public from URL
frameworks, laravel, php
Solution
Easiest way is create `.htaccess` file in your Laravel root with following content:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
It should be redirected easily.
Reference: https://coderwall.com/p/erbaig/laravel-s-htaccess-to-remove-public-from-url
Problem
So, I'm running xampp on Windows. I'm currently trying to get familiar with the laravel framework. Now, when thats pointed out. How can i be able to access my laravel application/website direct within the root? Example, - What I'm doing now is: localhost/laravel/public/about (to see the about page) - What i want to do is: localhost/laravel/about Any good solutions for this? do i need to add a .htacess file on the root folder of laravel? (not the public one). Any suggestions?