WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
The way W3 handles htaccess (2 posts)

  1. Dennis8
    Member
    Posted 3 years ago #

    I was wondering what the reasons are why W3 modifies the htaccess in a way that it puts the 301 redirects between W3 codes? Wouldnt it be better to have all the redirects remain at the top before any W3 stuff?

    Also, why does W3 create a huge blank space between the end of the 301 redirects and the second W3 entries (starting with # BEGIN W3TC Skip 404 error handling by WordPress for static files <IfModule mod_rewrite.c>)? Is this just me or does it create this blank space for everyone? It seems to get bigger and bigger the more I tweak W3 settings in wordpress.

    At the end of the htaccess, after the last W3 entry, I have the avoid hotlinking command. Is this the best place for them? Thanks for any insight you guys can share on this.

  2. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    The intention was for W3TC rules to appear directly above the WordPress fancy link directives, but it's not perfect and improves with each release. The best place for your custom directives is at the top of the file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic