打开配置文件
/etc/httpd/conf/httpd.conf
找到以下节点
<Directory "/var/www/html">
配置
AllowOverride None 改为 AllowOverride All
.htaccess文件内容:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>
http://blog.xqlee.com/article/553.html