Pages 404 in wordpress

Like Manish, I think the issue is with AllowOverride.

The following is based on a Debian server. Ubuntu, if you are not aware, is based on Debian.

In your apache2/ directory, you should have a sites-available/ and a sites-enabled/ directory.

  1. Disable your site with a2dissite
  2. Edit the appropriate file in sites-available/ to include the
    AllowOverride directive.
  3. Enable the site with a2ensite.

The following is based on y entry for my sandbox install of the current WordPress on my dev server:

# Apache configuration

Alias /wp_release /path/to/site/files

<Directory /path/to/site/files>
    AllowOverride FileInfo
    DirectoryIndex index.php
    Allow from All
    <IfModule mod_php5.c>
        AddType application/x-httpd-php .php

        php_flag magic_quotes_gpc Off
        php_flag track_vars On
        php_flag register_globals Off
        php_value include_path .
    </IfModule>

</Directory>

That is from a dev site with no access to the public internet (and I may have twitched something as an experiment at some point along the way). You may not want exactly that on a production server but the key parts are these bits:

    AllowOverride FileInfo
    DirectoryIndex index.php

Reference: http://httpd.apache.org/docs/current/mod/core.html#allowoverride

Leave a Comment