如何将 Apache .htaccess 文件转换为 Lighttpd 规则?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/62384/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 16:43:34  来源:igfitidea点击:

How to convert Apache .htaccess files into Lighttpd rules?

apache.htaccesslighttpd

提问by Shtirlic

It's big problem to convert mod_rewrite rules to lighttpd format

mod_rewrite 规则转换成lighttpd格式是个大问题

采纳答案by Alister Bulman

It is generally a case of just going through one by one and converting them. I don't know of any automated means,

一般都是一个一个的遍历然后转换的情况。我不知道有什么自动化手段,

The docs - http://redmine.lighttpd.net/projects/1/wiki/Docs:ModRewrite- has the regexes available, and some examples.

文档 - http://redmine.lighttpd.net/projects/1/wiki/Docs:ModRewrite- 有可用的正则表达式和一些示例。

if there are any particularly problematical items, I'd edit the question to show them, and ask for the answers here.

如果有任何特别有问题的项目,我会编辑问题以显示它们,并在此处寻求答案。

回答by Alister Bulman

url rewriting does not work within a $HTTP["url"] conditional. [http://forum.lighttpd.net/topic/1092#3028]

url 重写在 $HTTP["url"] 条件中不起作用。[ http://forum.lighttpd.net/topic/1092#3028]