Created
June 17, 2022 12:07
-
-
Save alainlankers/f4c6006c3d6ada797dbe17e46ff23fc7 to your computer and use it in GitHub Desktop.
enabling mod_rewrite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo a2enmod rewrite | |
sudo systemctl restart apache2 | |
sudo nano /etc/apache2/sites-available/000-default.conf | |
add: | |
<VirtualHost *:80> | |
<Directory /var/www/html> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
Require all granted | |
</Directory> | |
. . . | |
</VirtualHost> | |
sudo apache2ctl configtest | |
sudo systemctl restart apache2 | |
sudo nano /var/www/html/.htaccess | |
add: | |
RewriteEngine on | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment