简单的 Lighttpd 重写规则不起作用
我有以下网址
http://www.website.com/pub/?code=USERINPUT< /a>
我希望它显示为
http://www.website.com/pub/code /USERINPUT
我设置的我的 lighttpd.conf 中有以下内容,我每次都会收到 404 错误!
url.rewrite = ( "^/code/(.*)$" => "/pub/index.php?code=$1" )
I have the following URL
http://www.website.com/pub/?code=USERINPUT
I would like it to appear as
http://www.website.com/pub/code/USERINPUT
I set up the following in my lighttpd.conf and I just get 404'ed every time!
url.rewrite = ( "^/code/(.*)$" => "/pub/index.php?code=$1" )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过将其更改为解决了这个问题
I solved this by changing it to