.htaccess 如何通过htaccess从Url隐藏index.php
关于代码点火器和MySql: 如何通过htaccess从Url隐藏index.php?请参阅 在文档根目录中,包含以下内容的.htaccess文件:.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
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'] = '';