Apache Mod Rewrite For Laravel

后端 未结 5 1963
野趣味
野趣味 2020-11-29 05:26

I have an installation of Laravel on Wampserver. The directory is as follows:

C:\\wamp\\www\\laravel

Now URLs are like this:

http://localhost/

5条回答
  •  死守一世寂寞
    2020-11-29 06:00

    You're gonna end up with your code and your public folder residing in the same place, which most people do not recommend. I'd suggest you take advantage of using a local web server.

    Why not make mysite.dev point to laravel/public directory so you could just use http://mysite.dev everytime, you have cleaner and shorter URL's too?

提交回复
热议问题