Enable rewrite on Manbird

1

I've switched from Ubuntu to Manjaro, but I'm having a hard time enabling rewrite in Apache. I saw in a tutorial explaining, but I was in doubt of that line:

#My site mod_rewrite configuration
<Directory "/ABSOLUTE/PATH/YourSite">
  AllowOverride All
</Directory>

In fact it would be more of a website, how would I do in that case? I already uncommented the line below, but it still did not work:

  

LoadModule rewrite_module modules / mod_rewrite.so

Would I have to install something else in Manjaro?

    
asked by anonymous 20.07.2018 / 13:09

1 answer

0

I managed to resolve. For those who have this difficulty, open the file:

  

/etc/httpd/conf/httpd.conf

And change the line:

DocumentRoot "/srv/http"
   <Directory "/srv/http">
    Options Indexes FollowSymLinks
    AllowOverride none
     Require all granted
  </Directory>

To:

   DocumentRoot "/srv/http"
       <Directory "/srv/http">
        Options Indexes FollowSymLinks
        AllowOverride all
         Require all granted
      </Directory>

Please note that I put all in the box, because when I put All , it gave an error. In the block I put above, I removed the comments from Apache for better understanding.

    
20.07.2018 / 13:16