Apache : Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

De www.yakakliker.org
Révision datée du 26 juin 2024 à 09:50 par Administrateur (discussion | contributions) (Page créée avec « Solution 1<syntaxhighlight lang="bash"> ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load systemctl restart apache2 </syntaxhighlight> Solution 2<syntaxhighlight lang="bash"> sudo a2enmod rewrite && sudo service apache2 restart </syntaxhighlight> Catégorie:Apache2 Catégorie:Apache »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

Solution 1

ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load
systemctl restart apache2


Solution 2

sudo a2enmod rewrite && sudo service apache2 restart