• Resolved daboo

    (@daboo)


    I’m running a multi-site install on 3.4, and I just uninstalled WP Super Cache. Current .htaccess reads:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    It is slightly different from the non-super cache part of the htaccess back when WPSC was still installed, but if I leave version WPSC modified when I uninstalled it, only the home page on any given site works. Everything else 404s. So I looked around and found the above htaccess code, which allows other pages to display, but is messing with files.

    For example, http://thedharmabird.com/photographs/ actually returns the proper page, but none of the images (hosted by wordpress) load.

    What should this htaccess file look like?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Pioneer Web Design

    (@swansonphotos)

    Thread Starter daboo

    (@daboo)

    Thanks, but I actually already read that, and followed the instructions during uninstall. This is following all of those steps, where I am left with a wordpress install, and a .htaccess file that was modified to remove the SuperCache rules.

    Leaving the file at that, homepages on my multisite install display fine, but /photographs/ (for example) returns a 404.

    Using the rules I posted above (found via google), /photographs/ shows up, but attached images don’t load.

    Thread Starter daboo

    (@daboo)

    Just updated to 3.4.1. No changes, but wanted to note that I have upgraded.

    Thread Starter daboo

    (@daboo)

    Everything working properly with the following .htaccess file:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

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

The topic ‘.htaccess trouble after uninstalling WP Super Cache’ is closed to new replies.