Tutorial by Examples

Follow these steps to remove public from the url Copy .htaccess file from /public directory to Laravel/project root folder. Rename the server.php in the Laravel/project root folder to index.php. Cheers you will be good now. Please Note: It is tested on Laravel 4.2, Laravel 5.1, Laravel 5.2, ...
Renaming the server.php to index.php Copy the .htaccess from public folder to root folder Changing .htaccess a bit as follows for statics: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301] RewriteCond %{REQUEST_URI} !(\.css|\.js|\.png|\.jpg|\.gif|ro...

Page 1 of 1