我使用雪豹,我有我的本地市場環境,我試圖擺脫在URL中的index.php的...這裏是我的.htaccess和笨不工作
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
我的配置文件有這個
$config['index_page'] = "";
但是當我訪問網頁時沒有的index.php它不工作
這個作品
http://localhost/ci_example/index.php/site
這並不
http://localhost/ci_example/site
我試圖按照this
也許我需要做一些與本地的conf文件...但我真的不知道什麼,我不知道如何重新啓動apache命令行...任何想法
已與apache配置混淆? – yoda 2010-12-23 01:22:12
我想現在...我將AllowOverride全部更改爲無 – Trace 2010-12-23 01:37:45