How to enable mod_rewrite for Apache 2.2

后端 未结 15 1334
渐次进展
渐次进展 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:20

    New apache version has change in some way. If your apache version is 2.4 then you have to go to /etc/apache2/. There will be a file named apache2.conf. You have to edit that one(you should have root permission). Change directory text like this

    
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    
    

    Now restart apache.

    service apache2 reload
    

    Hope it works.

提交回复
热议问题