WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] Custom Rewrite Rules Breaking Page Cache (2 posts)

  1. Cliff Seal
    Member
    Posted 2 years ago #

    I'm having to do some 301 redirects to keep links from previous site iterations, so, before the WordPress permalinks RewriteRules, I have:

    RewriteRule ^(.*)index.html$ /$1.html [R=301,L]
    RewriteRule ^(.*)home.html$ /$1.html [R=301,L]
    RewriteRule ^(.*).html$ /$1 [R=301,L]
    RewriteRule /(\d)/(\d)/(.*) /$3 [R=301,L]

    Then, all the W3TC rules come after. This works great, except that it totally breaks the page cache URL's, leading to things like example.com/wp-content/w3tc/pgcache/_

    Is there a way to make these things work together in harmony?

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. Cliff Seal
    Member
    Posted 2 years ago #

    Oh, and I was using Disk: Enhanced. I'm trying out Disk: Basic now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic