• Resolved SRD75

    (@srd75)


    Hi,

    I have WordPress installed in the web root.

    I have a subdirectory called /analytics, which has been turned into a subdomain analytics.mydomain.com.

    This analytics.mydomain.com is not functioning correctly.

    In W3 TC, I went to Page Cache > Advanced > Cache exception list:
    and added “analytics” & “/home/username/public_html/analytics” (without quotes).

    However, analytics.mydomain.com still does not work.

    On this thread,
    Frederick Townes writes:

    You can add ExpiresActive off directive to .htaccess directive you need to be excluded from global policies W3TC sets.

    What would this look like in .htaccess, using the subdirectory/subdomain “analytics” as an example?

    Thanks and regards,
    Steve

    https://www.ads-software.com/plugins/w3-total-cache/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Frederick Townes

    (@fredericktownes)

    This is a great question for your webhost, I’d have to ask numerous questions to get to the bottom of this through a forum.

    Thread Starter SRD75

    (@srd75)

    My web host is useless, and they don’t support 3rd party software.

    You mentioned there was a possible solution, which my web host can’t help me with, but you don’t expand on.

    There are plenty of people who face the same problem Frederick, and you have closed the door on them each time.

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    I’m not sure why attacking me is an encouraging method to find a resolution here.

    All I just said is for the case you just wrote your host can help you with .htaccess files and troubleshoot if they’re working in your environment. I’m not sure what that has to do with other related problems because you haven’t referenced them.

    My specific quote refers to the fact that your document root can have an .htaccess file in it which will apply to the entire site and .htaccess files in subdirectories can overwrite those rules.

    Thread Starter SRD75

    (@srd75)

    For those who have the same problem, add this to .htaccess in your subdirectory:

    <IfModule mod_expires.c>
        ExpiresActive Off
    </IfModule>
    
    <IfModule mod_rewrite.c>
        RewriteEngine off
    </IfModule>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Exclude directory from cache not working’ is closed to new replies.