|
|
玩php web 建站遇到一个问题:伪静态规则是 nginx 的,但租的服务器是 apache 的,伪静态规则不通用,很多在线转换工具都是 htaccess转nginx 的,查了好多资料都捣鼓不成,有没有这方面的高手帮忙转换一下,万分感谢。:
nginx 伪静态规则:
****************************
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
}
location /h5 {
if (!-e $request_filename) {
rewrite ^(.*)$ /h5/index.html?s=$1 last;
break;
}
}
location /wap {
if (!-e $request_filename) {
rewrite ^(.*)$ /wap/index.html?s=$1 last;
break;
}
}
location /web {
if (!-e $request_filename) {
rewrite ^(.*)$ /web/index.html?s=$1 last;
break;
}
}
location /mshop {
if (!-e $request_filename) {
rewrite ^(.*)$ /mshop/index.html?s=$1 last;
break;
}
}
***********************
求相应的 htaccess 规则,谢谢,谢谢,谢谢,
|
|