WordPress.org

Forums

W3 Total Cache
[resolved] Can we please get proper documentation on how to setup .htaccess (5 posts)

  1. fruitllama
    Member
    Posted 4 years ago #

    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/

  2. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    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.

  3. fruitllama
    Member
    Posted 4 years ago #

    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.

  4. I would suggest this:

    # Custom Rules
    # W3TC Rules
    # WordPress Rules

    I've been using it that way for 3 months and everything works happily :)

  5. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    @ipstenu is absolutely right!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic