我被一个简单的 lighttpd url.rewrite 困住了
刚刚从 apache 切换过来,遇到了一些重写问题。
简单的任务:将“http://www.foo.com/BAR/”重写为“< a href="http://www.foo.com/BAR/index.php" rel="nofollow noreferrer">http://www.foo.com/BAR/index.php"
我已经尝试了以下(和变体)但它无法解析。
url.rewrite = (
"/BAR/" => "/BAR/index.php"
)
顺便说一句,我很喜欢正则表达式。
Just switched from apache and having some rewrite issues.
Simple task: rewrite "http://www.foo.com/BAR/" to "http://www.foo.com/BAR/index.php"
I've tried the following (and variations) but it doesn't parse.
url.rewrite = (
"/BAR/" => "/BAR/index.php"
)
I suck in regexps btw.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决了。忘记了之前重写行中的“,”...
Solved it. Forgot a "," to from a previous rewrite line...