How to Set AllowOverride all

前端 未结 11 1541
忘掉有多难
忘掉有多难 2020-11-22 10:17

I want to set the AllowOverride all But I don\'t know how to do it. I have found the following code by searching the google and pasted it in .htaccess

11条回答
  •  [愿得一人]
    2020-11-22 11:05

    enter code hereif you are using linux you have to edit the

    `/etc/apache2/sites-available/000-default.conf`
    

    under the Documentroot . add the following code

    `
      AllowOverride all
      Require all granted
    ` 
    

    then ,

    `sudo service apache2 restart`
    

    and you have to enable the apache mod rewrite

    `sudo a2enmod rewrite`
    

提交回复
热议问题