Forums

Permalinks on Apache 2 (4 posts)

  1. bgsambrook
    Member
    Posted 2 months ago #

    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!

  2. jdembowski
    Member
    Posted 2 months ago #

    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.

  3. bgsambrook
    Member
    Posted 2 months ago #

    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.

  4. jdembowski
    Member
    Posted 1 month ago #

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

Reply

You must log in to post.

About this Topic