The issue
I have installed a Wordpress. I have turned on Pretty Permalinks (Post name). Any page other than the homepage is a 404 Not Found
. This seems to indicate a rewrite issue.
My set up
Ubunutu 14.04
Using localhost as my URL
My apache config is /etc/apache2/sites-available/000-default.conf
My wordpress is located at /var/www/wordpress/
My relevant htaccess is located at /var/www/wordpress/.htaccess
What I've tried
When I run a2enmod rewrite
I get
Module rewrite already enabled
My .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
My 000-default.conf
file apache config
<Directory /var/www/wordpress/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
I've tried all the answers at the canonical question for this.
How to enable mod_rewrite for Apache 2.2
My question
Why is my rewrite not working?