【发布时间】:2018-05-17 17:50:29
【问题描述】:
我有像http://example.com/products.php?s_productid=231 这样的旧网址,现在在我的项目中,网址是http://example.com/products/ver/231
如何在 routes.php 中制定规则进行重定向? 谢谢
【问题讨论】:
-
您在哪里有旧网址?目前尚不清楚您的问题是什么。
-
是的,我的旧网页有 300 多个网址,例如 example.com/products.php?s_productid=231,而我的新网页有 example.com/products/ver/231,所以当我点击旧网址时,我会遇到谷歌搜索错误 404。
标签: codeigniter redirect routes