【发布时间】:2010-08-06 07:53:14
【问题描述】:
我正在尝试使用 codeigniter URL 路由来路由 URL。 我想重定向一个像
这样的 url- /users/edit?email 到 userController/editmail
- /users/edit?password 到 userController/editpassword
我尝试在配置文件夹的 routes.php 中使用以下行
$route["users/edit?(email|password)"] = "userController/edit$1";
这显示页面未找到。我猜?被视为正则表达式字符。我试图逃避它,但也没有用。
我不想将配置设置 uri_protocol 设置为 PATH_INFO 或 QUERY_STRING,因为这只是我要设置的漂亮 URL,而不是向操作传递任何内容。
有人能帮帮我吗?
问候
【问题讨论】:
标签: regex codeigniter url-routing