codeigniter去掉index.php的方法
Apache开启rewrite模块,在项目更目录新建 .htaccess文件输入以下内容
1 2 3 4 5 |
RewriteEngine on RewriteCond $1 !^(index\.php|static|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] |
Apache开启rewrite模块,在项目更目录新建 .htaccess文件输入以下内容
1 2 3 4 5 |
RewriteEngine on RewriteCond $1 !^(index\.php|static|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] |
No Comments