How to get rid of the public path in laravel on wamp

后端 未结 1 806
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-24 18:29

I have a quick issue. I am trying to use Laravel for the first time. To do so, I\'m using Wamp. And I don\'t know if this is important, but I set the DocumentRoot of wamp at thi

相关标签:
1条回答
  • 2021-01-24 18:52

    Assuming that you want to reach your Laravel site at: http://localhost/LaravelSite/

    You can either use an alias in your httpd.conf file:

    Alias /LaravelSite/ "C:/Users/Bebop/Documents/Site Internet/Sites/LaravelTest/public/"
    <Directory "C:/Users/Bebop/Documents/Site Internet/Sites/LaravelTest/public">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    

    or, create a symbolic link under command-prompt with the following:

    mklink /D "C:\Users\Bebop\Documents\Site Internet\Sites\LaravelSite" "C:\Users\Bebop\Documents\Site Internet\Sites\LaravelTest\public"`
    
    0 讨论(0)
提交回复
热议问题