<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /codeigniter RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index.php|images|robots.txt|css) RewriteRule ^(.*)$ index.php/$1 [L] </IfModule>
<IfModule !mod_rewrite.c> ErrorDocument 404 /index.php </IfModule>
补充:Php教程,apache
上一个:apache开启gzip压缩的方法下一个:Apache 添加虚拟目录注意事项