Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: 404 Page Not Found Issues – Mod Rewrite


paulellis55
Member

@paulellis55

Ran into the same issue of 404 Not Found after activating BuddyPress on my WP installation on Ubuntu 9.10. Looks like the default Apache installation didn’t have mod_rewrite enabled.

To address this I did the following:

– sudo a3enmod rewrite

– sudo apache2ctl restart

– put .htaccess in my WordPress directory (/var/www) :

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>

# END WordPress

– put the following in /etc/apache2/apache2.conf

DocumentRoot /var/www

<Directory />

Options FollowSymLinks

AllowOverride all

</Directory>

<Directory /var/www/>

Options Indexes FollowSymLinks MultiViews

AllowOverride FileInfo Options

Order allow,deny

allow from all

</Directory>

I haven’t tested to see if this is all needed or not, but that’s what my site has configured now and it appears to fix the issue.

Skip to toolbar