问题描述
例如这个链接 /index.php?route=product/category&path= , 我只想把访问这个链接的用户就跳转到 /abc.html 页面
这个如何写? nginx
问题解答
回答1:试试这个
if ( $request_uri = '/index.php?route=product/category&path=' ){ return 301 /abc.html;}

问题描述
例如这个链接 /index.php?route=product/category&path= , 我只想把访问这个链接的用户就跳转到 /abc.html 页面
这个如何写? nginx
问题解答
回答1:试试这个
if ( $request_uri = '/index.php?route=product/category&path=' ){ return 301 /abc.html;}
相关文章:1. javascript - type="date"的默认值能改变为当天日期吗2. type="text/css"是什么意思?3. 为什么总是提示我说Template "movieTemplate" not found,我路径都引对了呀4. <tr valign="top"> 看不懂5. solaris基础和常用知识 (2)6. browser-sync刷新不了内容7. background-image:url(" ")我的图片在桌面8. html5 - 有可以一次性把所有 css外部样式转为html标签内style=" "的方法吗?9. javascript - canvas使用toDataUrl()出错,img设置img.crossOrigin = "*"也没用。10. javascript - 在移动端input type="number" 键盘没法弹起
网公网安备:皖ICP备2020019022号-8 Copyright ¢ 2020-2025 Powered by V1.8 All Rights Reserved 技术支持:乐呵呵网
声明:本站所有资源以学习为主