Laravel redirects to a route but then apache gives 404 error

后端 未结 3 1530
抹茶落季
抹茶落季 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 09:49

    After adding

    AllowOverride All
    

    to the vhost configuration, got it working. Probably the default configuration wasn't allowing the redirects?

    Here's my final (and working) vhost configuration:

    DocumentRoot /var/www/sitefolder/public
     ServerName site.domain.com
     
      AllowOverride All
      allow from all
      Options +Indexes
    
    

提交回复
热议问题