Forum Replies Created

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)