doufu2396 2013-12-05 16:45
浏览 52
已采纳

.htaccess:我应该使用一般规则还是一些特定的规则?

I am creating a webapp which consists of a very few main scripts. And I wonder - is better AND faster to use some specific rules (from about 10 to 20)

Or is it better to use some general rule e.g. http://example.com/go/my/boy would come to go.php?my=boy ?

This question is (more or less) about PERFORMANCE :)

EDIT: I dont have the resources to make a performance test by myself.

  • 写回答

1条回答 默认 最新

  • doushi1900 2013-12-05 17:04
    关注

    You are splitting hairs. As far as Apache performance when it comes to rewrites, alias & redirects there is a very slight performance hit when you add more rules. But it is negligible to imperceptible in practical use. And FWIW, this is a fairly common rookie perception when it comes to Apache performance.

    Meaning, if you are worried about application performance, optimizing your application itself—and not the Apache web server—will give you the best & most measurable performance improvements.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源
  • ¥15 安卓JNI项目使用lua上的问题
  • ¥20 RL+GNN解决人员排班问题时梯度消失
  • ¥60 要数控稳压电源测试数据
  • ¥15 能帮我写下这个编程吗
  • ¥15 ikuai客户端l2tp协议链接报终止15信号和无法将p.p.p6转换为我的l2tp线路