Title: [Plugin: W3 Total Cache] WordPress in subdirectory problem with cache
Last modified: August 19, 2016

---

# [Plugin: W3 Total Cache] WordPress in subdirectory problem with cache

 *  [hmwind](https://wordpress.org/support/users/hmwind/)
 * (@hmwind)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-in-subdirectory-problem-with-cache/)
 * I have WordPress installed in a subdirectory and redirect my website’s homepage
   to the subdirectory with a 301 redirect to prevent duplicate content. That works
   O.K. until I install W3 Total cache. In that case the redirect seems to be bypassed
   which generates duplicate content for my homepage content and the subdirectory
   content.
 * Any solution would be highly appreciates because W3 Total Cache seems to be the
   right solution to speed up my site.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-in-subdirectory-problem-with-cache/#post-1689632)
 * Can you make sure that your redirect rules are above W3TC and WordPress directives
   in your .htaccess file?
 *  Thread Starter [hmwind](https://wordpress.org/support/users/hmwind/)
 * (@hmwind)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-in-subdirectory-problem-with-cache/#post-1689642)
 * It looks like that did the trick Frederick. Thanks a lot!
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-in-subdirectory-problem-with-cache/#post-1689656)
 * You’re welcome.
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-in-subdirectory-problem-with-cache/#post-1689657)
 * You’re welcome.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: W3 Total Cache] WordPress in subdirectory problem with cache’
is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-wordpress-in-subdirectory-problem-with-cache/#post-1689657)
 * Status: not resolved