Answers for "apache2 enable htaccess"

3

enable https://www htaccess

RewriteEngine On 
RewriteCond %{HTTPS} off 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Posted by: Guest on July-16-2020
2

apache .htaccess Option ubuntu

#For those of you who are using linux and the .htaccess is not working.
You can go to  /etc/apache2/apache2.conf  and allow override for the /www directory.
<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>
Posted by: Guest on June-09-2020
0

adding htaccess file apache

<Directory "/var/www">
	AllowOverride All
</Directory>
Posted by: Guest on March-02-2021

Browse Popular Code Answers by Language