【已完成】windows+nginx配置伪静态页面404
在linux系统+nginx伪静态是可以正常访问的,但是在windows系统nginx配置伪静态页面404。网站程序都是一样,伪静态也是一样。但是windows就没用,重启过环境。rewrite /index.html$ /index.php;
rewrite /list-(*).html$ /index.php/Content/index/lists/catid/$1/;
rewrite /list-(*)-(*).html$ /index.php/Content/index/lists/catid/$1/page/$2;
rewrite ^/show-(+)-(+)\.html$ /index.php/Content/index/shows/catid/$1/id/$2;
rewrite /list-(*).html$ /index.php?g=Wap&a=lists&catid=$1;
rewrite ^/show-(+)-(+)\.html$ /index.php?g=Wap&a=shows&catid=$1&id=$2;
rewrite /index-(+*).html$ /index.php?p=$1;
rewrite ^/(tag|Tag)-(.*?)\.html$ /index.php?a=lists&catid=$2;
您好,您那边使用apache服务运行下项目看下是否正常呢?您提供的这个伪静态参数看着显示apache下使用的 apache也不行,我在阿里云服务器nginx 伪静态是可以用的。 您好,请问当前问题是否解决呢?如未解决您可以发帖子重新咨询,旧贴先标记已完成状态。 我也遇到这个问题,不知是什么原因
页:
[1]