q6542125 发表于 2017-3-29 12:16:51

CodeIgniter 的URL不显示index.php

  只需要在目录下新建立一个配置文件 (.htaccess)
  在里面写如

[*]RewriteEngine on   
[*]RewriteCond $1 !^(index\.php|images|robots\.txt)   
[*]RewriteRule ^(.*)$ index.php/$1   

  就可以去掉index.php了
页: [1]
查看完整版本: CodeIgniter 的URL不显示index.php