Created
April 3, 2023 21:02
-
-
Save josecaos/f8aead4c0cd10451461106b00c09dacd to your computer and use it in GitHub Desktop.
Allow Custom Permalinks in WP localhost enviroment
This file contains hidden or 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
| // Enable "mod_rewrite" in Apache2 | |
| - In terminal: | |
| sudo a2enmod rewrite | |
| // Add rule to apache | |
| - Edit file | |
| cd /etc/apache2/sites-available | |
| sudo nano 000-default.conf | |
| - Add this line where "wordpress" is the site directory | |
| <Directory /var/www/html/wordpress> | |
| AllowOverride All | |
| </Directory> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Restart Apache
sudo systemctl restart apache2