【发布时间】:2010-09-23 15:09:53
【问题描述】:
我正在尝试创建一个像这样工作的 url 字符串:
/app/process/example.com/index.html
换句话说,
/app/process/$URL
然后我用
检索 url$this->uri->segment(3);
URL 中的正斜杠当然会成为访问 uri 段的问题,所以我将继续对 URL 部分进行 url 编码:
/app/process/example.com%2Findex.html
.. 但现在我只得到一个 404 说...
Not Found
The requested URL /app/process/example.com/index.html was not found on this server.
看来我的正斜杠 url 编码破坏了 CI 的 URI 解析器。
我能做些什么来解决这个问题?
【问题讨论】:
标签: php url codeigniter uri urlencode