【发布时间】:2013-08-02 13:12:11
【问题描述】:
我想写一个规则,members/show/ 字符串将隐藏在 URL 中。
原始 URL:localhost:8080/sandbox/member/show/helloworld,其中helloworld 是帐户名称。我希望它是localhost:8080/sandbox/m/helloworld。基本上,交付的内容将来自完整的 url,但我希望它对任何用户都隐藏。
RewriteRule ^.*$ member/show/$0 [L,QSA] 似乎不起作用,它会引发 500 内部服务器错误。我使用 CodeIgniter 框架,并且已经存在以下重写规则:RewriteRule .* index.php/$0 [PT,L]。
我尝试了几个 RewriteRule 选项,但没有成功。如果有人能对我的问题有所了解,我将非常高兴。
最好的问候。
【问题讨论】:
标签: php mod-rewrite