如何在codeigniter中重命名index.php

如何在codeigniter中重命名index.php,php,codeigniter,Php,Codeigniter,我使用的是codeigniter 2.1.3版本 在本文中,我创建了一个应用程序,并将index.php文件重命名为main.php文件 现在,当我使用codeigniter函数anchor()创建任何锚点时,它会创建带有index.php的链接,任何人都可以告诉我如何正确地重命名这个东西,以便它正常工作。 将index.php重命名为main.php。Readconfig.php它清楚地表明 /* |-----------------------------------------------

我使用的是codeigniter 2.1.3版本

在本文中,我创建了一个应用程序,并将index.php文件重命名为main.php文件

现在,当我使用codeigniter函数anchor()创建任何锚点时,它会创建带有index.php的链接,任何人都可以告诉我如何正确地重命名这个东西,以便它正常工作。
将index.php重命名为main.php。

Read
config.php
它清楚地表明

/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = "";

阅读
config.php
它清楚地说

/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = "";