0

Hi i've installed laravel 4 inside a subfolder on my main domain.

domain.com/laravel4/

Inside laravel 4 ive created an .htaccess that points to the public folder of laravel.

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

.htaccess inside the public folder

<IfModule mod_rewrite.c>
    Options -MultiViews
    RewriteEngine On

    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

The problem is I got a redirect loop.

4

1 回答 1

0

你能试一下吗:

公用文件夹中的 htaccess

<IfModule mod_rewrite.c>
    Options -MultiViews
    RewriteEngine On    
    RewriteBase /public/

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule . index.php [L]
</IfModule>
于 2013-11-01T06:14:27.817 回答