htaccess for domain and subdomain with laravel

后端 未结 2 445
逝去的感伤
逝去的感伤 2021-01-23 19:48

I\'m trying to figure out how to set up a domain and subdomain to work on a shared hosting account. It is a Laravel 5.1 application.

My access file is

O         


        
2条回答
  •  没有蜡笔的小新
    2021-01-23 20:41

    Maybe, you get a redirect loop, because the rule isn't protected by a condition. Although the default htaccess of Laravel should already contain them.

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ index.php [L]
    

提交回复
热议问题