xampp apache rewrite not working

后端 未结 1 1173
名媛妹妹
名媛妹妹 2020-12-04 03:58

I have a folder called crm in htdocs which contains a fresh laravel 5.1 project and i am trying to acess it via http://localhost/crm/ but it just brings the index of page co

相关标签:
1条回答
  • 2020-12-04 04:43

    You need to point Laravel to public directory to make it work. For example, if you've installed Laravel in C:/xampp/htdocs/ directory, you need to use these settings:

    DocumentRoot "C:/xampp/htdocs/public"
    <Directory "C:/xampp/htdocs/public">
    

    Do not edit .htacces inside public folder. Try to change settings and load Laravel website by going to localhost first.

    When you've edited Apache config file, you should restart web server.

    0 讨论(0)
提交回复
热议问题