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