nginx 伪静态
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
将nginx伪静态配置设置为下面内容即可: location / { if (!-e $request_filename) {
location / { if (!-e $request_filename) { rewrite ^(.)$ /i
location / { if (!-e $request_filename){ rewrite ^(.)$ /index.php?s=$
工作中用到伪静态,本机工作的环境是windows的,远程服务器的是Linux的;windows用的是apache,linux用的是nginx。 apache 的步骤
server \{ listen 80; server\_name promotion.admin.xxxx.cn; location / \{ root
\网上很多关于伪静态的配置,我只想说"楼主的是亲测" \根据楼主的教程来nginx的伪静态规则配置,不成功的话,直播\\\!!! 背景,[http://www.abc.
我的网站有两种语言,中文+英文 如果用pathinfo访问的话应该是这样 中文: [http://www.com/index.php/product/category/a1/
还没有评论,来说两句吧...