apache的伪静态写法:
RewriteEngine On
RewriteCond % {REQUEST_FILENAME} !-f
RewriteCond % (REQUEST_FILENAME) !-d
RewriteRule ^(.*)$ indexp?/$1 [QSA, PT,L]
nginx写法:
location / {
index index.html index.php;
#autoindex on;if(!-e&request_filename){
rewrite ^(.*)% /index.php?s=/$1 last;
break;
}
}