welcome to dzp's blog!
在项目 根目录(和index.php一个目录下)添加 文件名为 .htaccess,输入内容:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots.txt)RewriteRule ^(.*) index.php/$1 [L]