RewriteEngine on
RewriteCond %{SERVER_PORT} 80 [NC]
RewriteCond %{HTTP_HOST} !^www.xxx.com$ [NC]
RewriteRule ^(.*)$ http://www.xxx.com/$1 [L,NC,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(\.(js|gif|jpg|png|css|swf|txt|php|html)(.*))$
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L,NC]
ErrorDocument 404 /index.php?m=Empty
</IfModule>
还是自己解决了,分享出来,帮助要用到的人
最佳答案
