WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WordPress MU Domain Mapping] super cache .htaccess disables domain mapping (1 post)

  1. wpmubp
    Member
    Posted 5 years ago #

    When I enabled the latest version of super cache, it started showing 500 errors each time I access to my blog with this domain mapping plugin. Although it returns 500 on the frontend, wp-admin was still accessible with the defined domain URL.

    I thought WP_CACHE was causing some errors, but then it wasn't.

    Then I deleted the required htaccess entry for super cache, the error is gone.Following is what comes with super cache. I think some part of this is wrong, but I can't tell where.

    # BEGIN WPSuperCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    AddDefaultCharset UTF-8
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*=.*
    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_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*=.*
    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>
    # END WPSuperCache

    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

Topic Closed

This topic has been closed to new replies.

About this Topic