Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess 如何通过htaccess从Url隐藏index.php_.htaccess_Codeigniter - Fatal编程技术网

.htaccess 如何通过htaccess从Url隐藏index.php

.htaccess 如何通过htaccess从Url隐藏index.php,.htaccess,codeigniter,.htaccess,Codeigniter,关于代码点火器和MySql: 如何通过htaccess从Url隐藏index.php?请参阅 在文档根目录中,包含以下内容的.htaccess文件: RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) # these are examples, # add everything here that

关于代码点火器和MySql: 如何通过htaccess从Url隐藏index.php?

请参阅

在文档根目录中,包含以下内容的.htaccess文件:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt) # these are examples,
                                                 # add everything here that
                                                 # you **don't** want to be
                                                 # routed to CI
RewriteRule ^(.*)$ /index.php/$1 [L]
然后在application/config/config.php中更改:


它与MySQL无关。重复一百次!
$config['index_page'] = '';