Php 重定向循环在子目录/子文件夹中安装laravel 4

Php 重定向循环在子目录/子文件夹中安装laravel 4,php,.htaccess,laravel-4,Php,.htaccess,Laravel 4,嗨,我已经在我的主域的子文件夹中安装了Laravel4 domain.com/laravel4/ 在laravel 4中,我创建了一个指向laravel公用文件夹的.htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] </IfModule> 重新启动发动机 重写规则^(.*)$public/$1[L] .htaccess位于公用文件夹

嗨,我已经在我的主域的子文件夹中安装了Laravel4

domain.com/laravel4/
在laravel 4中,我创建了一个指向laravel公用文件夹的.htaccess

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

重新启动发动机
重写规则^(.*)$public/$1[L]
.htaccess位于公用文件夹中

<IfModule mod_rewrite.c>
    Options -MultiViews
    RewriteEngine On

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

选项-多视图
重新启动发动机
重写基/
重写cond%{REQUEST_FILENAME}-D
重写cond%{REQUEST_FILENAME}-F
重写规则^index.php[L]
问题是我有一个重定向循环。

你能试试:

htaccess在公用文件夹中

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

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

选项-多视图
重新启动发动机
基础/公共/
重写cond%{REQUEST_FILENAME}-D
重写cond%{REQUEST_FILENAME}-F
重写规则。index.php[L]