2013-02-01 39 views
0

所以我遇到的問題是與.htaccess重複的一部分url。從本質上講,我已經安裝在根/論壇/和htaccess的(如下所示代碼)的IPB複製論壇,使得URL看起來像根/論壇/論壇/.htaccess添加重複的URL

這裏是htaccess的代碼。

<IfModule mod_rewrite.c> 
Options -MultiViews 
RewriteEngine On 
RewriteBase /forum/ 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule \.(jpeg|jpg|gif|png)$ /forum/public/404.php [NC,L] 

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

從的.htaccess刪除/論壇打破了現場。是我的.htaccess代碼還是這是別的?

回答

0

在這裏,你有我的.htaccess,等於你......

IfModule mod_rewrite.c> 
Options -MultiViews 
RewriteEngine On 
RewriteBase /forum/ 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule \.(jpeg|jpg|gif|png)$ /forum/public/404.php [NC,L] 

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

,是所有工作在這裏很好。我在「論壇」文件夾裏面有一個論壇... 你是否已經在adminCP中激活了.htaccess mod_rewrite設置?

您通過此URL(http://site.com/forum)或(http://forum.site.com)訪問您的論壇?我用第一個,在這裏工作很好...