Install Laravel 5 app in subdirectory with htaccess
The Setup I am trying to install a laravel 5 app in this directory on my server: public_html/myapp/ And I want it to be accessed at this URL: http://www.example.com/myapp/ I have created this .htaccess rule and placed it in the myapp folder in order to redirect requests : RewriteEngine on RewriteRule ^(.*)$ public/$1 [L] Problem: In my browser when I try to access the app I get redirected URLs like: http://www.example.com/myapp/public/index.php http://www.example.com/myapp/public/index.php/dashboard instead of nice pretty URLs like: http://www.example.com/myapp/ http://www.example.com/myapp