mod-重写法术书
我发现的大多数在线指南都是冗长、无聊、不足或缺乏。我在哪里可以找到广泛而简洁地解释 mod-rewrite 的指南?
(上述问题源于以下情绪:) 我不满足于简单地复制和粘贴使我的 .htaccess 文件执行我的命令的神奇咒语。我想学习黑魔法。我想了解它的细节,这样我就可以根据我的服务器的需求做一些棘手的事情。
Most online guides I've found are lengthy, boring, insufficient, or otherwise lacking. Where can I find a guide that explains mod-rewrite extensively, yet concisely?
(The above question sprouts from the following sentiment:)
I'm not satisfied with simply copying and pasting the magical incantations that make my .htaccess files do my bidding. I want to learn the dark arts. I want to learn the nooks and crannies of it, so that I can do tricky things specific to my server's needs.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
阅读详细的 mod_rewrite 文档。它包含您需要了解的所有内容。剩下的就是练习了。
Read the detailed mod_rewrite documentation. It contains everything you need to know. The rest is practice.
好吧,我建议的一种选择不是免费的。为什么不观看幻灯片或直接购买 Apache 贡献者之一 Rich Bowen 撰写的书?:
http://www.apachelounge.com/download/contr/mod_rewrite.pdf
http://www.amazon.com/Definitive-Guide-Apache-mod_rewrite-Guides/dp/1590595610
我自己正在翻阅这本书。由于我实际上正在测试这些指令,因此读取速度比我希望的要慢。但是,我认为可以通过三天的下班后努力来合理地完成。对我来说,光是这个价钱就值了,因为它帮助我理解了。
RewriteMap
。当我的团队对一次紧急实施超过 200 个重定向感到惊讶时,这拯救了我的工作。Well, one option I would suggest is not for free. Why not view slides or just buy the book written by Rich Bowen, one of the Apache contributors?:
http://www.apachelounge.com/download/contr/mod_rewrite.pdf
http://www.amazon.com/Definitive-Guide-Apache-mod_rewrite-Guides/dp/1590595610
I am knocking through the book myself. Since I am actually testing out the directives, it is a slower read than I would prefer. But, think could be reasonably finished with three days of after-work effort. It was worth the price alone for me because it helped me understand.
RewriteMap
. This saved my bacon at work when my team got surprised for an emergency implementation of over 200 redirects at one shot.