Lighttpd mod_rewrite 到 Apache Mod_rewrite
我在这里寻求帮助。 我正在尝试将 lighttpd mod_rewrite 转换为 apache mod_rewrite
就是这样。 Lighttpd
url.rewrite-once = (
"/torrent/([0-9A-F]{2,2})([0-9A-F]{2,2})([0-9A-F]{36,36}).*" => "/t3/$1/$2/$3.torrent",
)
我查找了 apache 的 mod_rewrite 的多个教程,但确实没有帮助。
这是我想出的:
RewriteRule ^/torrent/ ([0-9A-F]{2,2})/ ([0-9A-F]{2,2})/ ([0-9A-F]{36,36})/* => /t3/$1/$2/$3.torrent
如果有人可以帮助我转换它,那将是一件幸事,谢谢你,
当我将其放入时,我得到的只是错误代码 500,mod_rewrite 已启用,但这不起作用。
I am looking for some help here. I am trying to convert lighttpd mod_rewrite to apache mod_rewrite
Here it is.
Lighttpd
url.rewrite-once = (
"/torrent/([0-9A-F]{2,2})([0-9A-F]{2,2})([0-9A-F]{36,36}).*" => "/t3/$1/$2/$3.torrent",
)
I look up multiply tutorials of apache's mod_rewrite but really no help.
Here what I came up with:
RewriteRule ^/torrent/ ([0-9A-F]{2,2})/ ([0-9A-F]{2,2})/ ([0-9A-F]{36,36})/* => /t3/$1/$2/$3.torrent
If anybody can help me convert this, it would be an blessing, thankyou
all I get when I put this in is error code 500, mod_rewrite is enabled but this doesn't work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Apache 的 mod_rewrite 语法有点不同:
各部分用 1 分隔或更多空白字符,并且
[
flags
]
是可选的。所以试试这个:
Apache’s mod_rewrite syntax is a little different:
The parts are separated by one or more whitespace characters and
[
flags
]
is optional.So try this: