Create and put this .htaccess file in your laravel installation(root) folder.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
More Related Contents:
- Laravel redirect back to original destination after login
- Migration: Cannot add foreign key constraint
- Laravel Eloquent groupBy() AND also return count of each group
- Laravel – Route::resource vs Route::controller
- Laravel 4 All Routes Except Home Result in 404 Error
- How can I resolve “Your requirements could not be resolved to an installable set of packages” error?
- Laravel Redirect Back with() Message
- global variable for all controller and views
- Eloquent eager load Order by
- How can I remove a package from Laravel using PHP Composer?
- Laravel Fluent Query Builder Join with subquery
- multiple mail configurations
- How to Get the Current URL Inside @if Statement (Blade) in Laravel 4?
- Laravel. Use scope() in models with relation
- Laravel 4: how to run a raw SQL?
- Laravel Eloquent “WHERE NOT IN”
- Rollback one specific migration in Laravel
- Laravel Controller Subfolder routing
- How to use paginate() with a having() clause when column does not exist in table
- Validation of array form fields in laravel 4 error
- Best Practices for Laravel 4 Helpers and Basic Functions?
- How to access model hasMany Relation with where condition?
- Eloquent push() and save() difference
- Laravel 4: Failed to open stream: Permission denied
- Set port for php artisan.php serve
- Laravel save / update many to many relationship
- Laravel: Returning the namespaced owner of a polymorphic relation
- Polymorphic Eloquent relationships with namespaces
- Laravel 4 : Route to localhost/controller/action
- Clone an Eloquent object including all relationships?