Checklist for WordPress “Pretty Permalinks” on Ubuntu
- Enable
mod_rewrite
cd /etc/apache2/mods-enabled
sudo ln -s ../mods-available/rewrite.load rewrite.load - Change to
AllowOverride All
inuserdir
sudo vim userdir.conf
Example of myuserdir.conf
:<Directory /dir/to/wordpress>
AllowOverride All
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
</directory> - Customize Permalink Structure in WordPress admin page
- Copy
.htaccess
in WordPress directory if not created.cd /dir/to/wordpress
sudo vim .htaccess
Should be something linke this:<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>