How to enable mod_rewrite for Apache 2.2

后端 未结 15 1557
渐次进展
渐次进展 2020-11-21 07:09

I\'ve got fresh install of Apache 2.2 on my Vista machine, everything works fine, except mod rewrite.

I\'ve uncommented

LoadModule rewrite_module mo         


        
15条回答
  •  孤城傲影
    2020-11-21 07:28

    Old thread, just want to put that don't set AllowOverride to all instead use specific mod you want to use,

    AllowOverride mod_rewrite mod_mime
    

    And this line should be un-commented

    LoadModule rewrite_module modules/mod_rewrite.so
    

    Refrences

    • http://www.eschrade.com/page/why-you-should-not-use-htaccess-allowoverride-all-in-production/
    • https://httpd.apache.org/docs/2.4/misc/security_tips.html
    • https://httpd.apache.org/docs/2.4/rewrite/avoid.html

提交回复
热议问题