nginx伪静态求助 感谢
<br />Options +FollowSymLinks<br /><IfModule mod_rewrite.c><br />RewriteEngine on<br />RewriteCond %{REQUEST_FILENAME} !-d<br />RewriteCond %{REQUEST_FILENAME} !-f<br />RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]<br /></IfModule><br /><br />###########################华丽丽的分界线#################<br />#上面是原来htaccess中的url重写配置(apache环境),thinkphp项目,有xx、yy、zz三个分组,xx是默认分组<br />#下面是我要配置的虚拟机<br />##########################################################<br />server {<br /> listen 80;<br /> server_name www.aaa.com;<br /> location / {<br /> root E:/webroot;<br /> index index.html;<br /> include fastcgi_params;<br /> <br /> rewrite ^(.*)$ /index.php?$1 last;<br /> }<br /> error_page 404 = http://www.aaa.com/error404.html;<br /> location ~ \.php$ {<br /> root E:/webroot;<br /> fastcgi_pass 127.0.0.1:9000;<br /> fastcgi_index index.html;<br /> fastcgi_param SCRIPT_FILENAME E:/webroot$fastcgi_script_name;<br /> include fastcgi_params;<br /> }<br />}<br /><br />