• I’m trying to move from the default permalink structure to /%category%/%postname%/ and I keep encountering a 404 error.

    htaccess file is created in the root/blog/ folder and WP 2.8.4 has complete access to the file (CHMOD 777). I even deleted all the contents of the file and allowed WP to rewrite to it.

    Virtual Host settings are as follows:

    <Directory “/Library/WebServer/Documents/mysite.com”>
    AllowOverride All
    <IfModule mod_dav.c>
    DAV Off
    </IfModule>
    Options All -Includes -ExecCGI +MultiViews -Indexes
    </Directory>
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} ^TRACE
    RewriteRule .* – [F]
    </IfModule>

    Can anyone help me out, I’m going crazy here. . . thanks so much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    The 404 means either you’re hitting the wrong vhost (probably not) or mod_rewrite is not loaded on that vhost.

    Create a phpinfo.php file with just <?php phpinfo(); ?> and load that off of your virtual host. There should be a mod_rewrite listed there on that page. That will confirm that mod_rewrite is loaded.

    If it is listed, then just for troubleshooting sake, make a copy of that httpd.conf (or whatever your webserver calls it) and remove the two lines

    RewriteCond %{REQUEST_METHOD} ^TRACE
    RewriteRule .* - [F]

    And then restart your apache webserver process. See if that helps. If something goes really wrong, put back that copy you made and restart the web server again.

    Thread Starter bgsambrook

    (@bgsambrook)

    I’ve created phpinfo.php and confirmed that mod_rewrite appears as a loaded module.

    I also removed the two lines:

    RewriteCond %{REQUEST_METHOD} ^TRACE
    RewriteRule .* - [F]

    and then restarted Apache. . . still no dice!

    I’m still getting a 404 for any other permalink setting other than default.

    Any other ideas? I really appreciate the help.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Late reply but what does your blog root .htaccess contain?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Permalinks on Apache 2’ is closed to new replies.