Support » Plugin: W3 Total Cache » [Plugin: W3 Total Cache] Can we please get proper documentation on how to setup .htaccess

  • Resolved fruitllama

    (@fruitllama)


    Can we please get proper documentation on how to setup .htaccess

    It seems there is no documentation on how to format .htaccess for this plugin, and almost every other post here is about .htaccess issues.

    It’s good that the plugin tries to do it automatically, but some of us have custom .htaccess rules.

    How do we format our .htaccess if we have custom rules? Also, is the default wordpress supposed to be first or last? Do we format our .htaccess like this…

    # BEGIN W3TC Browser Cache
    ……
    # BEGIN W3TC Page Cache
    ……
    # BEGIN WordPress
    ……
    # CUSTOM rules
    redirect 301 /url01 /url02

    OR like this…

    # BEGIN WordPress
    ……
    # CUSTOM rules
    redirect 301 /url01 /url02
    # BEGIN W3TC Browser Cache
    ……
    # BEGIN W3TC Page Cache
    ……

    Thank you for your time.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Put your custom rules at the top of the file. W3TC tries to put it’s rules above WordPress’, but many folks do interesting things with their files.

    Thread Starter fruitllama

    (@fruitllama)

    Thanks for the reply Frederick.

    Quick follow up question,

    What about the default WordPress rules, would the following work with no problems? Or do the default WordPress rules have to be on top of everything.

    # CUSTOM rules
    redirect 301 /url01 /url02

    # BEGIN WordPress
    ……
    # BEGIN W3TC Browser Cache
    ……
    # BEGIN W3TC Page Cache
    ……

    Thanks in advance.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I would suggest this:

    # Custom Rules
    # W3TC Rules
    # WordPress Rules

    I’ve been using it that way for 3 months and everything works happily 🙂

    @ipstenu is absolutely right!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: W3 Total Cache] Can we please get proper documentation on how to setup .htaccess’ is closed to new replies.