我是Codeigniter
的新手,並試圖配置Codeigniter
。刪除CodeIgniter_2.1.4中的index.php
,但我無法刪除index.php
從網址..
我通過下面這是在給定userguide數據改變了.htaccess
文件..
.htacess文件包含
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
並且還改變了配置文件
$config['index_page'] = '';
當我嘗試使用下面的鏈接它導致
所請求的網址/笨/網頁/視圖在此服務器上找到。
http://localhost/codeigniter/pages/view
但我試着用的index.php在url..The網頁正常顯示..
http://localhost/codeigniter/index.php/pages/view
是這樣的.htaccess問題,或者我必須要改變一些其他的文件..?
如何擺脫這個問題?
任何建議,可以接受。
更新
我使用的ubuntu 3.10
我用下面的命令來啓用模塊重寫
sudo a2enmod rewrite
結果如下
Module rewrite already enabled
我改變了權限在
/etc/apache2/sites-enabled/000-default
由於
ServerAdmin [email protected]
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
改變這個文件還沒有運氣後..
我在哪裏可以找到codeigniter中的http.conf文件..?我是新的codeigniter .. – PHPCoder
它不是在codeigniter – Ravi
告訴我你的操作系統? – Ravi