2013-11-01 57 views
0

嗨,我已经在我的主域中的子文件夹中安装了laravel 4。重定向循环在子目录/子文件夹中安装laravel 4

domain.com/laravel4/ 

Inside laravel 4 ive创建了一个指向laravel公用文件夹的.htaccess。

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

.htaccess中的公用文件夹

<IfModule mod_rewrite.c> 
    Options -MultiViews 
    RewriteEngine On 

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

的问题是我有一个重定向循环中。

回答

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> 
相关问题