Laravel redirects to a route but then apache gives 404 error

后端 未结 3 1561
抹茶落季
抹茶落季 2021-01-02 09:33

I have a site that is working on the same server in a different url (staging), but now I\'ve deployed the site and the base url (\"/\") is redirected to the login url (so la

3条回答
  •  一个人的身影
    2021-01-02 10:13

    The problem might come from a module in your Apache server called rewrite module. in windows you can just uncomment this line from your httpd.conf

    #LoadModule rewrite_module modules/mod_rewrite.so

    I'm running Ubuntu 14.04 and enabled it using

    sudo a2enmod rewrite

    Try these with an Apache restart. It might work for you as well.

提交回复
热议问题