If you wish to use any internal "permalink" style, other than the default, several things have to come together:
- Make sure the rewrite module in Apache is enabled (Used for WordPress Permalinks)
sudo a2enmod rewrite
- A stanza needs to be added to /etc/apache2/sites-enabled/000-default.conf
# Added by AJM for Wordpress permalink <directory html="" var="" www=""> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </directory>
Note that < and > in the text above should be "less than sign" (U+003C) and "greater than sign" (U+003E) but they keep getting interpreted by html as tags and the Gorse Fox can't work out how to avoid this at present - Make sure /var/www/html/.htaccess exists and is writable
sudo touch /etc/www/html/.htaccess
sudo chmod 666 /etc/www/html/.htaccess - Restart apache
- From WordPress Dashboard "Settings" change Permalinks structure to your chosen preference.
No comments:
Post a Comment