nginx - 如何通过参数在nginx配置文件中实现if else条件
问题描述
我的网址是https://www.example.com/article_slug?amp=1(对于 amp 页面),网站网址是https://www.example.com/article_slug
我如何通过 URL 根据“?amp=1”在服务器配置文件中实现 if else 条件。
请帮我
解决方案
推荐阅读
- c - 避免与 pthread 发生内存冲突
- r - R:训练集和测试集对分类解释变量采用不同的值:逻辑回归
- sql - 上一季度的最后一天减去 1 年或 2 年
- oracle - 如何在 PL/SQL Developer 中检索和增加指纹分数?
- ios - 我的应用程序如何打开 Siri 快捷方式记录短语视图
- python-2.7 - 如何使用 api.onchange 返回字典值
- java - Java如何在同一目录中创建多个文件夹
- c - 避免文件中的空白
- android - 在 kitkat android 上找不到处理 Intent { act=android.intent.action.OPEN_DOCUMENT_TREE cat=[android.intent.category.DEFAULT] } 的活动
- h2o - 运行 h2o.save_model 保存模型时的文件格式是什么?