Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter lildude

    (@lildude)

    Just an update for anyone who stumbles on this post. The problem still exists and I’m working on what exactly causes it and how to fix it. At the moment the work-around is to include wp-config.php instead of wp-blog-header.php.

    I’ll update this thread with my findings.

    Thread Starter lildude

    (@lildude)

    Update: It seems IE 6 and later don’t have a problem viewing the page, however the 404 error is still there.

    Sorry folks. I didn’t opt for these options as it’s still messy and removes some of the functionality of WordPress and my templates. Instead, I did the following (using WP 1.5.2):

    WARNING: THIS IS A QUICK & NASTY WORK-AROUND THAT DOES THE JOB

    1. Install and setup WP so that the WordPress URI and the Blog URI point to the WP install directory – eg http://www.domain.com/wordpress/

    2. Edit the wp-includes/classes.php file and comment out lines 1244, 1245, 1246 and 1248 thus leaving it looking as follows:


    // if (strstr($query, $this->index)) {
    // $rules .= 'RewriteRule ^' . $match . ' ' . $home_root . $query . " [QSA,L]n";
    // } else {
    $rules .= 'RewriteRule ^' . $match . ' ' . $site_root . $query . " [QSA,L]n";
    // } }

    3. Go to Option -> General
    4. Set Blog Address to your base URI – eg http://www.domain.com
    5. Click Update Options. This should now create your .htaccess in the base directory of your site, not in /wordpress/
    6. Edit the new .htaccess file, and add the following BEFORE the
    # BEGIN WordPress line:

    RewriteRule ^$ /wordpress/ [QSA,L]

    Thus making the beginning of your file look as follows:

    RewriteRule ^$ /wordpress/ [QSA,L]
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d

    Note, you can change the /wordpress/ to where ever you chose to install WP.

    7. Save the file.

    You should find that all your RewriteRules point to /wordpress/index.php and it will stay this way when you make any updates in the future.

    Just one word of warning... these changes will be lost when you update WP to a later release (cos you're over-writing the classes.php file), but it's a small price to pay for neat, tidy convenience.

    I could have coded round this, but I really couldn't be arsed. Commenting out 3 lines is way simpler.

    If you really need to view the upgrade instructions, then checkout google’s cached version of the page at http://216.239.59.104/search?q=cache:Lyq7Q1clv68J:codex.wordpress.org/Upgrading_WordPress

    Oh and it was “retrieved on 25 Feb 2005 03:43:59 GMT.”

Viewing 4 replies - 1 through 4 (of 4 total)