2011-05-12 42 views
0

我想在Windows Server上做一些簡單的操作:我想在使用Code Igniter構建的站點上使URL www.xxxxx.co.uk/index.php/xxxxxx/xxxxx顯示爲www.xxxxx.co.uk/xxxxxx/xxxxxIsapi重寫器似乎插入一個額外的「index.php」

我的虛擬主機設置了Isapi Rewriter的版本3。

.htaccess文件說:

RewriteEngine On 
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule .? index.php/%{REQUEST_URI} [QSA,L] 

但現在,被加載沒有圖像。

仔細檢查,似乎在域名後加載了一個額外的index.php

有沒有人有解決方案?

回答

0

嘗試查看CodeIgniter config/config.php文件。

在第29行,確保$config['index_page']變量設置爲空白。