Laravel 4 removing public from URL

后端 未结 20 2113
一个人的身影
一个人的身影 2020-11-29 04:33

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 appl

20条回答
  •  一整个雨季
    2020-11-29 04:55

    Easiest way is create .htaccess file in your Laravel root with following content:

    
        RewriteEngine On
        RewriteRule ^(.*)$ public/$1 [L]
    
    

    It should be redirected easily.

    Reference: https://coderwall.com/p/erbaig/laravel-s-htaccess-to-remove-public-from-url

提交回复
热议问题