AWS Ubuntu系统下网站产品页404 not found nginx
在AWS Ubuntu系统下安装LNMP1.7环境,网站 www.homebbq.club 所有都能打开就是产品页面打不开。所有其他都排查过了,就是这个伪静态规则有问题,麻烦高手帮忙指点修改一下,多谢啦!
/usr/local/nginx/conf/rewrite/zencart.conf 文档伪静态规则内容如下:
location / {
if (-d $request_filename) {
break;
}
if (-f $request_filename) {
break;
}
#producttags
rewrite ^/producttags/$ /index\.php?main_page=producttags last;
rewrite ^/producttags/([-\w]+)/$ /index\.php?main_page=producttags&letter=$1&$args last;
rewrite ^/producttags/([\w])/([0-9]+).html$ /index\.php?main_page=producttags&letter=$1&page=$2&$args last;
rewrite ^/wishlist/$ /index\.php?main_page=wishlist last;
rewrite ^/wishlist/([\w])/$ /index\.php?main_page=wishlist&letter=$1&$args last;
rewrite ^/wishlist/([-\w]+)/([0-9]+).html$ /index\.php?main_page=wishlist&letter=$1&page=$2&$args last;
#products_products
rewrite ^/tags_products/$ /index\.php?main_page=tags_products last;
rewrite ^/tags_products/(.*)_([0-9]+).html$ /index\.php?main_page=tags_products&tags_name=$1&tags_id=$2&$args last;
#Enable only if using "Categories as Directories"
rewrite ^/(.*)-c-([0-9_]+)/(.*)-p-([0-9]+)\.html$ /index\.php?main_page=product_info&products_id=$4&cpath=$2&$args last;
#Normal operation Ultimate SEO URLs
rewrite ^/(.*)-p-([0-9]+)\.html$ /index\.php?main_page=product_info&products_id=$2&$args last;
#From Ultimate SEO URLs
rewrite ^/(.*)-p-([0-9]+)(.*)$ /index.php?main_page=product_info&products_id=$2&$args last;
rewrite ^/(.*)-c-([0-9_]+)/(.*)-p-([0-9]+)(.*)$ /index.php?main_page=product_info&products_id=$2&$args last;
rewrite ^/(.*)-c-([0-9]+)_([0-9]+)/$ /index.php?main_page=index&cPath=$2_$3&$args last;
rewrite ^/(.*)-c-([0-9]+)/$ /index.php?main_page=index&cPath=$2&$args last;
rewrite ^/(.*)-m-([0-9]+)(.*)$ /index.php?main_page=index&manufacturers_id=$2&$args last;
rewrite ^/(.*)-pi-([0-9]+)(.*)$ /index.php?main_page=popup_image&pID=$2&$args last;
rewrite ^/(.*)-pr-([0-9]+)(.*)$ /index.php?main_page=product_reviews&products_id=$2&$args last;
rewrite ^/(.*)-pri-([0-9]+)(.*)$ /index.php?main_page=product_reviews_info&products_id=$2&$args last;
rewrite ^/(.*)-ezp-([0-9]+)(.*)$ /index.php?main_page=page&id=$2&$args last;
#tags_products
rewrite ^/tags_products/$ /index.php?main_page=tags_products last;
rewrite ^/tags_products/(.*)_([0-9]+).html$ /index.php?main_page=tags_products&tags_name=$1&tags_id=$2&$args last;
#For product tags
rewrite ^/producttags/$ /index.php?main_page=producttags last;
rewrite ^/producttags/(.*)/$ /index.php?main_page=producttags&letter=$1&$args last;
rewrite ^/producttags/([w])/([0-9]+).html$ /index.php?main_page=producttags&letter=$1&page=$2&$args last;
#For wishlist
rewrite ^/wishlist/$ /index.php?main_page=wishlist last;
rewrite ^/wishlist/([w])/$ /index.php?main_page=wishlist&letter=$1&$args last;
rewrite ^/wishlist/([-w]+)/([0-9]+).html$ /index.php?main_page=wishlist&letter=$1&page=$2&$args last;
#For Open Operations Info Manager
rewrite "^/(.*)-i-([0-9]+).html" /index.php?main_page=info_manager&pages_id=$2&% last;
rewrite "^(.*).html" /index.php?main_page=$1&% last;
rewrite ^/(.*)$ /index.php?main_page=$1&$args last;
相关推荐
基于django开发的cms网站
基于django开发的cms网站,开始使用前先阅读readme.cmd文件。建议使用Python虚拟环境。
果树春季修剪操作手册(含冬剪夏剪对比图).docx
果树春季修剪操作手册(含冬剪夏剪对比图)
冬雨季道路划线施工避坑指南(含温湿度要求).docx
冬雨季道路划线施工避坑指南(含温湿度要求)
玉米大豆带状复合套种实施方案(含行距配置).docx
玉米大豆带状复合套种实施方案(含行距配置)
【大学物理A】北京师范大学2026大学物理A期末模拟试题及答案详解
内容概要:本文档为北京师范大学《大学物理A》课程的期末模拟试题,涵盖力学、刚体、振动、波动与热学等核心内容,题型包括选择题、填空题和计算题,共计100分,考试时长120分钟。题目设计贴近实际考试难度,重点考查学生对基本概念的理解与综合应用能力,如运动学方程、圆周运动加速度分析、刚体转动、简谐振动、波动方程建立以及理想气体状态变化过程中的功、内能和热量计算。附有详细参考答案与评分标准,便于自我检测与复习巩固。; 适合人群:北京师范大学理工科类修读大学物理A课程的学生,或其他高校同等水平、正在备考大学物理期末考试的学习者;具备高中物理基础和初步微积分知识的学习者亦可使用。; 使用场景及目标:①用于期末考前系统复习与自测,查漏补缺;②强化对物理模型的理解与公式运用能力,提升解题技巧与应试水平;③通过典型题目训练掌握答题规范与得分要点。; 阅读建议:建议先独立完成整套试卷后再对照答案分析错因,重点关注计算题的推导过程与单位书写规范,结合知识点回顾教材相关内容,实现从“会做”到“掌握”的转化。


