WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: W3 Total Cache] .htaccess missing rules (3 red warnings) (3 posts)

  1. cospefogo
    Member
    Posted 4 years ago #

    Dear Fred,

    I just migrated to 0.9 DEV version and the multisite integration look like to work correctly. It is perfectly fine to active the plugin for different blogs on my network and the respective cache folders are created sucessfully, however I keep seeing 3 big red warnings all the time:

    Enhanced mode page cache is not operational ... please verify ... .htaccess has the following rules ...

    Browser Cache feature is not operational ... Please verify ... .htaccess has the following rules ...

    Browser Cache feature is not operational ... Please verify ... .htaccess has the following rules ... (different rules from second warning)

    The plugin is activated in 2 blogs:
    http://www.example.com/blog1/
    http://www.example.com/blog2/

    My .htacess (on the root of my public_html DIR on the server) is already CHMODed to 777. I tried to add manually the missing rules (presented on the warning messages) into my root .htaccess and simply all blogs stopped working. I reverted back to the original .htaccess and everything wet fine again.

    This is my .htacess server root located together with the wp core files:

    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]

    Where should I add the missing rules?
    To this .htaccess?

    Or should I add to some other .htaccess file located inside the W3TC cache folders? Every blog has its own /pgcache folder with .htacess inside. I hope I don't need to mess with them, because they are owned by user 99 (apache user) and I can CHMOD or edit!

    Sorry for this long message...
    And, I don't know if it is my mind or if it is my bandwidth, but even with the .htaccess rule errors, it looks like the plugin is working! My websites are very fast!

    Regards,
    Cospefogo.

  2. cospefogo
    Member
    Posted 4 years ago #

    Addition:
    Yes, no doubt my sites are super fast, even with the errors...

    Is it normal to have the...

    /wp-content/w3tc-blog1.www.example.com/
    /wp-content/w3tc-blog2.www.example.com/

    ...with its sub directories empty? I mean, the pgcache, objectcache, min, log, dbcache, etc are all there. Some even have .htacess inside. But this is not the place where it is supposed to be located the "real" cached files? Maybe I am confusing things...

    The other cache plugin I had in the past used to keep many "static" .html files inside its cache folder.

    Thanks!
    Cospefogo.

  3. Frederick Townes
    Member
    Posted 4 years ago #

    In network mode .htaccess is not automatically updated for you for various reasons. The development release will have a notification for you later to assist.

Topic Closed

This topic has been closed to new replies.

About this Topic