Remove index.php from URL of Laravel

天涯浪子 提交于 2019-12-07 13:15:28

Reset anything you have changed back to the default.

In your apache virtual host configuration, ensure you have the DocumentRoot correct (it will be something like /var/www/html/laravelproject/public).

You should not need to make any changes to the .htaccess file in the public folder as this handles rewriting the url to remove index.php. However, in some environments, I have had to add

RewriteBase /laravelproject

to the .htaccess in the public folder.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!