WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WordPress MU Domain Mapping] super cache .htaccess disables domain mapping

[Plugin: WordPress MU Domain Mapping] super cache .htaccess disables domain mapping

  • 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/

  • The topic ‘[Plugin: WordPress MU Domain Mapping] super cache .htaccess disables domain mapping’ is closed to new replies.
Skip to toolbar