首页 > 解决方案 > 重定向 301 不起作用 htaccess laravel

问题描述

目前我有这个工作示例链接

https://sample.com/product-landing?id=1

但在网站上:google.com

它被检测为https://sample.com/product-landing?id=1/homebrewing

现在我正在尝试像这样重定向它

Redirect 301 /product-landing?id=1/homebrewing https://sample.com/product-landing?id=1

但它不工作

我的其他重定向代码是这样的

Redirect 301 /wine https://sample.com/mybeer

工作正常。怎么来的?

标签: laravel.htaccessredirect

解决方案


推荐阅读