问题描述
我有一台服务器,它的httpd.conf已经有一些的 RedirectMatch永久的指令在里面。
I have a server, it's httpd.conf already has some "RedirectMatch permanent" directives in it.
我没那么熟悉mod_alias中,我只用过mod_rewrite的。
I'm not that familiar with mod_alias, I've only ever used mod_rewrite.
有什么根本区别?我没有看到一个mod_alias中的L标志停止处理规则。
What's the basic difference? I don't see a "L" flag in mod_alias to stop processing rules.
我应该使用哪一个从一个子域名重定向到另一个的最佳做法?
Which one should I use for best practices of redirecting from one subdomain to another?
我可以在同一时间同时使用,并将它很明显这需要precidence?
Can I use both at the same time and will it be obvious which takes precidence?
推荐答案
mod_alias中基本的mod_rewrite的简化版本。它不能做一些事情,mod_rewrite的即可,如操纵查询字符串。如果你可以选择其中任何一个,我看不出有任何理由,你想使用mod_alias中。
mod_alias is basically a simpler version of mod_rewrite. It can't do some things that mod_rewrite can, such as manipulate the query string. If you're able to choose either of them, I don't see any reason that you'd want to use mod_alias.
有没有你需要尝试同时使用起来具体的原因是什么?
Is there a specific reason you need to try to use both together?
Apache的mod_rewrite和放大器; mod_alias中的技巧,你应该知道似乎是有关这两个好文章。它指出在这mod_rewrite的规则来之前mod_alias中那些执行的一个点。
Apache mod_rewrite & mod_alias tricks you should know seems to be a good article about the two. It notes at one point that mod_rewrite rules get executed before mod_alias ones.
这篇关于mod_rewrite的或mod_alias中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!