问题:
在k3上搭建好onmp环境后,我的web服务用的是nginx,所以安装好maccms v10需要伪静态配置
解决办法:
下边的代码就是maccms v10在nginx环境下的伪静态配置,如果不配置会导致重定向次数过多这个错误,只需要把#othercon下面的if语句复制一下就行了
server { listen 83; server_name localhost; root /opt/wwwroot/maccms/; index index.html index.htm index.php tz.php; include /opt/etc/nginx/conf/php-fpm.conf; #othercon if (!-e $request_filename) { rewrite ^/index.php(.*)$ /index.php?s=$1 last; rewrite ^/admin.php(.*)$ /admin.php?s=$1 last; rewrite ^(.*)$ /index.php?s=$1 last; break; } }