使用apache Alias从子文件夹运行Laravel

时间:2016-08-14 10:13:45

标签: apache laravel

我试图在我的vps上从子文件夹运行laravel是我的配置,但它返回了太多的重定向

apache alias

Alias /stockapp/ "/var/www/html/stockapp/public/"
<Directory "/var/www/html/stockapp/public/">
   Order allow,deny
   Allow from all   
   Require all granted
</Directory>

在public / .htaccess

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
    Options -MultiViews
</IfModule>

RewriteEngine On
RewriteBase /stockapp

# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]

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

0 个答案:

没有答案