2016-02-05 03:50
浏览 235


I know this question has been asked a number of times. However, I still wasn't able to get rid of index.php url. It is preventing me to access my controller directly.

I am current using CodeIgniter 2.2.2.
And the following is my .htaccess file:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]


//  Find the below code

$config['uri_protocol'] = "AUTO"

//  Replace it as

$config['uri_protocol'] = "REQUEST_URI" 

Any Idea? Thanks in advance for your time.

图片转代码服务由CSDN问答提供 功能建议

我知道这个问题已被多次询问。 但是,我仍然无法摆脱 index.php网址。 它阻止我直接访问我的控制器。</ p>

我目前正在使用 CodeIgniter 2.2.2 </ code>。
以下是我的。 htaccess </ code>文件:</ p>

 &lt; IfModule mod_rewrite.c&gt; 
RewriteEngine On 
RewriteCond%{REQUEST_FILENAME}!-d \  nRewriteRule ^(。*)$ index.php / $ 1 [L] 
&lt; / IfModule&gt; 
 </ code> </ pre> 

application / config:</ strong> < / p>

 $ config ['uri_protocol'] =“AUTO”
 $ config [  'uri_protocol'] =“REQUEST_URI”
 </ code> </ pre> 

任何想法? 提前感谢您的时间。</ p> </ div>

8条回答 默认 最新

相关推荐 更多相似问题