Forums

Need help with WordpresMu and wp super cache (3 posts)

  1. firespin
    Member
    Posted 1 year ago #

    If anyone used this plugin before I would appreciate any help, as this is my first time using wordpress mu and wp super cache.
    I have two questions:

    1. Is not the super cache suppose to create wp-cache and wp-super-cache files? I ask because that is what I thought the plugin should do, but it seems to only create cache files (the plugin options only show cache files created)

    2. I sort of got confused by what I should have in the htaccess file, as super cache wanted me to place code in the htaccess. Is the following how my htaccess file should look in the end?:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    AddDefaultCharset UTF-8
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{QUERY_STRING} !.*p=.*
    RewriteCond %{QUERY_STRING} !.*attachment_id=.*
    RewriteCond %{QUERY_STRING} !.*wp-subscription-manager=.*
    RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]

    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{QUERY_STRING} !.*p=.*
    RewriteCond %{QUERY_STRING} !.*attachment_id=.*
    RewriteCond %{QUERY_STRING} !.*wp-subscription-manager=.*
    RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
    </IfModule>

    RewriteEngine On
    RewriteBase /

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ /$1/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

  2. MrBrian
    Member
    Posted 1 year ago #

    Check if the files it's suppose to create are there, if not copy them there. They are included with it. The .htaccess looks fine. what exactly is the problem? supercache can be a little tough to setup. Are you sure you need it?

  3. xyzzy
    Member
    Posted 5 months ago #

    The WP-Super-Cache directions for modifying htaccess file in WPMU install are kind of confusing.

    In particular, the RewriteBase parameter is different for each blog.

    RewriteBase /someblog/

    Do I need to add something to htaccess for EACH blog, or will having

    RewriteBase /

    be enough?

Topic Closed

This topic has been closed to new replies.

About this Topic