【发布时间】:2020-03-04 22:45:15
【问题描述】:
在 codeigniter 中,我使用 routes.php 中的以下代码将我的 url www.xxxxxx.com/jewels 路由到 www.xxxxxx.com/luxury-jewels,
$route['(.*)luxury-jewels'] = "jewels";
当我是我的其他语言时,上面的代码适用于英语,它在 URL 中添加新参数 "ru" 例如:
www.xxxxxx.com/ru/luxury-jewels 执行此操作时出现 404 Page Not Found 错误。
我尝试了不同的路由组合,但它不起作用。
【问题讨论】:
标签: php codeigniter url