• I know a lot of people have posted about this, but my problems are with 2.0.1 .

    Basically, if I set the permalink structure to anything other than the default, every page, including the index, becomes a 404 instead.

    I’ve tried recreating the .htaccess, deleting and re-uploading the source, deactivating all the plugins and even double-checked the integrity of the database, but to no avail.

    if you want to see the problem, the blog is at http://www.mameworld.net/agemame/ (the Links to Downloads page is my rewritten 404 page, just so that people can still access my content while the site is down.)

    I’ve set the page up so that the dump_env output is there for anyone to look at should they want to.

    .htaccess

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    # Redirect FeedBurner to your own Feed
    RewriteBase /agemame/
    RewriteRule ^feedburner_298039/?$ /agemame/feed/ [R,L]
    RewriteCond %{HTTP_USER_AGENT} ^FeedBurner.*$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /agemame/index.php [L]
    # These Rules redirect all feed Traffic to FeedBurner
    RewriteBase /agemame/
    RewriteCond %{QUERY_STRING} ^feed=(feed|rdf|rss|rss2|atom)$
    RewriteRule ^(.*)$ http://feeds.feedburner.com/AgemameHq [R,L]
    RewriteRule ^(feed|rdf|rss|rss2|atom)/?(feed|rdf|rss|rss2|atom)?/?$ http://feeds.feedburner.com/AgemameHq [R,L]
    RewriteRule ^wp-(feed|rdf|rss|rss2|atom).php http://feeds.feedburner.com/AgemameHq [R,L]
    # These are the standard WordPress Rules
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /agemame/index.php [L]
    </IfModule>

    # END WordPress

Viewing 1 replies (of 1 total)
  • Right, I fixed the problem (I know the username’s different, but that’s because I was borrowing a PC before), but the way I did it was fairly hacky.

    (NOTE: This can involve database hacking, but if you follow the steps in the order I’ve written, you shouldn’t need to)

    1. Set your permalink setting to ‘default’ (This is to delete
    the rewrite rules in the database)

    2. Open wp-includes/classes.php

    3. Change the line:
    ‘ var $use_verbose_rules = false;’
    to
    ‘ var $use_verbose_rules = true;’

    4. Find the function ‘function wp_rewrite_rules()’

    5. After the line
    ‘ if ( empty($this->rules) ) {‘
    comment out the next three lines with ‘//’

    6. Resave the file

    7. Done!

    The reasoning behind this is to prevent the 404 handler from taking over the redirect function, and letting .htaccess do it. Admittedly, this has the effect of bypassing much of WP 2.0.1 ‘s rewrite handling, but it works for me.

Viewing 1 replies (of 1 total)
  • The topic ‘Major problems with permalink structure’ is closed to new replies.