WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
W3 Total Cache on a Subdomain (6 posts)

  1. mari_d
    Member
    Posted 2 years ago #

    Hello there,

    First of all big compliments for the W3 team for the best WP plugin!

    How can I let W3 Total Cache work on a subdomain? (what are the settings?)

    W3TC on a http://www.main-domain.com works like a charm

    http://www.main-domain.com/sub-domain.com with rewrite rule in the main-domain .htaccess to http://www.sub-domain.com does not work (minify and page caching)

    Many thanks.

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

  2. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    A TLD domain is domain.com and a sub-domain is normally sub.domain.com. Are you you using multi-site?

  3. mari_d
    Member
    Posted 2 years ago #

    I mean with the webhoster.

    The main website is located in the public_html and the subdomains are like this in directory: public_html/subdomainname.com.

    In the main .htaccess (which is locatad in public_html) are the rules for the subdomains written like this to work correct:

    #RULE:,subdomainname.com,/subdomainname.com
    RewriteCond %{HTTP_HOST} ^www.subdomainname$
    RewriteCond %{REQUEST_URI} !^/subdomainname.com/

    Maybe I can send you a pm for the website.

    Thanks Frederick Townes!

  4. mari_d
    Member
    Posted 2 years ago #

    I made a mistake.

    The website is on a subdirectory of the server. W3TC doenst work on a subdirectory.

    Has anybody a solution for websites which are located in a subdirectory on the sever with W3TC?

  5. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    @mari_d, would you mind submitting a bug submission form from the support tab of the plugin so I can see what's going on with your install?

  6. kioub
    Member
    Posted 1 year ago #

    Hello Frederick, all

    I am experiencing the exact same problem. I have been using W3 Total cache for all of my WordPress based sites without any problems until I started using it on WordPress installations for subdomain sites.

    I use ServInt as my hosting provider and a subdomain WordPress site is realized as a folder inside my "public_html" folder - where all of the main site's WordPress files reside.

    I have applied the exact same configuration for W3 Total cache on both the primary and subdomain sites and allthough cache on the main site is working as expected, on the subdomain sites the following two error messages appear :

    - It appears Page Cache URL rewriting is not working. If using apache, verify that the server configuration allows .htaccess or if using nginx verify all configuration files are included in the configuration.

    - It appears Minify URL rewriting is not working. If using apache, verify that the server configuration allows .htaccess or if using nginx verify all configuration files are included in the configuration.

    After "playing" with the configuration I managed to get rid of the errors by setting options on Page cache to "Disk:Basic" (it was set on "Disk:Enhanced) and Minify to disable "Rewrite URL structure". The cache actually appeared to be working, even with the errors I saw in the admin panel.

    I forwarded the issue to ServInt support team that checked the configuration on both the main and subdomain sites but could not figure out the real cause of the problem. They said that it looks like there is a bug with W3TC and not a problem with your server pointing to the following thread of the W3 total cache forum :

    http://wordpress.org/support/topic/page-cache-url-rewriting-is-not-working

    Unfortunately posts on the forum does not shed any more light for resolving the specific issue. In addition since the specific errors are present I am not able to deploy minified files on CDN.

    Does anyone is experiencing the same problems?

    I have tested the specific setup on WordPress versions 3.4.2 up to 3.5.1 (including)

    I would really appreciate your feedback. At your disposal for further input.

    Thanks in advance

    Byron

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic