Title: Incorrect Apache install instructions/config
Last modified: June 22, 2023

---

# Incorrect Apache install instructions/config

 *  Resolved [Jamie Burchell](https://wordpress.org/support/users/jamieburchell/)
 * (@jamieburchell)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/incorrect-apache-install-instructions-config/)
 * I’ve just noticed that the Apache configuration generated on the “Install” page
   is incorrect:
 *     ```wp-block-code
           RewriteCond "%{DOCUMENT_ROOT}/var/www/vhosts/example.com/shared/web/app/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SLASH}%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html" -f
           RewriteRule .* "/var/www/vhosts/example.com/shared/web/app/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SLASH}%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html" [L]
           RewriteCond %{REQUEST_METHOD} !=POST
           RewriteCond %{ENV:W3TC_QUERY_STRING} =""
           RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
           RewriteCond "%{DOCUMENT_ROOT}/var/www/vhosts/example.com/shared/web/app/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SLASH}%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.xml" -f
           RewriteRule .* "/var/www/vhosts/example.com/shared/web/app/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SLASH}%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.xml" [L]
       </IfModule>
       # END W3TC Page Cache core
       # BEGIN W3TC Browser Cache
       # END W3TC Browser Cache
       ```
   
 * Notice how the absolute path to the directory on the file system is used? `{DOCUMENT_ROOT}/
   var/www/vhosts/example.com/shared`… doesn’t make sense.

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

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/incorrect-apache-install-instructions-config/#post-16843275)
 * Hello [@jamieburchell](https://wordpress.org/support/users/jamieburchell/)
 * Thank you for reaching out and I am happy to assist you with this.
 * Can you please share if you modified your file path for security manually or 
   with any plugin and can you please share your website URL?
 * Thanks!
 *  Thread Starter [Jamie Burchell](https://wordpress.org/support/users/jamieburchell/)
 * (@jamieburchell)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/incorrect-apache-install-instructions-config/#post-16847737)
 * Hey [@vmarko](https://wordpress.org/support/users/vmarko/) no plugins to modify
   paths, but I am using the Roots Bedrock framework where file paths are slightly
   different. I’d gladly share site details privately if this is an option.
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/incorrect-apache-install-instructions-config/#post-16849467)
 * Hello [@jamieburchell](https://wordpress.org/support/users/jamieburchell/)
 * Thank you for your feedback. Can you please specify the path to the /cache/ folder
   on your server?
   Please reach out to us directly via the plugin in Performance
   >Support.
 * Thanks!
 *  Thread Starter [Jamie Burchell](https://wordpress.org/support/users/jamieburchell/)
 * (@jamieburchell)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/incorrect-apache-install-instructions-config/#post-16849688)
 * Hi [@vmarko](https://wordpress.org/support/users/vmarko/) it’s `/var/www/vhosts/
   example.com/current/web/app/cache` which is symlinked to `/var/www/vhosts/example.
   com/shared/web/app/cache`
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/incorrect-apache-install-instructions-config/#post-16852629)
 * Hello [@jamieburchell](https://wordpress.org/support/users/jamieburchell/)
 * Thank you for your feedback.
 * W3 Total Cache only follows the symlink logic. Are the cached files created in
   the cache folder?
 * Thanks!
 *  Thread Starter [Jamie Burchell](https://wordpress.org/support/users/jamieburchell/)
 * (@jamieburchell)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/incorrect-apache-install-instructions-config/#post-16853988)
 * Hi [@vmarko](https://wordpress.org/support/users/vmarko/) yep – there’s no problem
   saving the cache files or delivering them, but the .htaccess rules are not quite
   right. I’ve changed them to correct them, but I’m just flagging it.

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

The topic ‘Incorrect Apache install instructions/config’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [Jamie Burchell](https://wordpress.org/support/users/jamieburchell/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/incorrect-apache-install-instructions-config/#post-16853988)
 * Status: resolved