Viewing 8 replies - 1 through 8 (of 8 total)
  • bump.

    I also have the same problem. I might also add that it may be affecting adsense relevancy on the pages WITH the www. The mediapartners bot isn’t browsing those pages. *scratches head*.

    Ok I dropped this into htacesss BEFORE the W3TC and wordpress rules.

    RewriteCond %{HTTP_HOST} ^DOMAIN.com$ [NC]
    RewriteRule ^(.*)$ https://www.DOMAIN.com/$1 [R=301,L]

    all urls have the www, now. But now i’m wondering if that is best. Does that code need to wrapped in anything? At the bottom where the wordpress rules are, i have “<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase / ………”
    When i try to merge them, the homepage url displays a direct link to the W3TC page cache index file instead of just https://www.domain.com

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    You can write it in a IfModule block if you want, but it’s ok as is.

    I have the same problem, but cannot not solve it with the above RewriteCond/RewriteRule.

    I am using https://striderweb.com/nerdaphernalia/features/virtual-multiblog/
    to serve my to websites ( https://openmtbmap.org and https://www.velomap.org )from the same installation on my dedicated root server.

    I have to enable all plugins on both sites, on my main site (openmtmbap) everything works fine, but on my “www” velomap.org site, also if activated and supposedly working, pages are not cached (saying cookie rejected) and users typing adresses without www get shown an error page. If I use the above rules, then people of both my sites get redirected to the www. site mentioned in the rewriterule.

    I am not sure if virtual multiblog for wordpress is to blame, but due to this problem I am not able to use W3TC (too much work to disable virtual multiblog for wordpress once setup and create and service two seperate wordpress installations, the new wordpress default multiblog does not cut it for me)….

    Otherwise, compared to when I looked up W3TC about 6 month ago, great that qtranslate is now compatible and performance seems to be much better than back then. Now W3TC is more performant than wp supercache plus using xcache (with W3TC using xcache where advised, else using disk/disk enhance only performance is not so great…)

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    Can you submit a bug submission form from the support tab of the plugin?

    Bug support added. One further note: the following file is allways conflicting:
    wp-content/w3tc/pgcache/.htaccess

    because this line: Header set X-Pingback “https://www.velomap.org/xmlrpc.php&#8221; vice versa Header set X-Pingback “https://openmtbmap.org/xmlrpc.php&#8221;
    has to be working for both virtual multiblog sites, but will only ever be correct for either (if rewritten, then it will be wrong for the other site…)

    Sorry I have to deactivate W3 total cache again, cause too many people would be bummed about ending up on the wrong page (last time about 500 people in 24hrs… as I get about 6000 visitors a day on both pages together..)

    The thing with the virtual multiblog to understand is, that all files will only exist once, only database for each site unique. I think this causes the probs (wp supercache or the much better wp supercache plus is fine though with this situation)

    # BEGIN W3TC Page Cache
    AddDefaultCharset UTF-8
    <IfModule mod_mime.c>
    AddType text/html .gzip
    AddEncoding gzip .gzip
    </IfModule>
    <IfModule mod_deflate.c>
    SetEnvIfNoCase Request_URI \.gzip$ no-gzip
    </IfModule>
    <IfModule mod_headers.c>
    Header set X-Pingback “https://www.velomap.org/xmlrpc.php&#8221;
    Header set X-Powered-By “W3 Total Cache/0.9.1.3”
    Header set Vary “Accept-Encoding, Cookie”
    </IfModule>
    # END W3TC Page Cache

    ok, the redirect works but ‘websitegrader‘ tells me ‘Permanent Redirect Not Found’ still

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    I recommend you ask your host about that case.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: W3 Total Cache] Won't redirect to www. any more’ is closed to new replies.