Title: Online Documentation &#8211; Apache
Last modified: May 30, 2019

---

# Online Documentation – Apache

 *  Resolved [kendawes](https://wordpress.org/support/users/kendawes/)
 * (@kendawes)
 * [7 years ago](https://wordpress.org/support/topic/online-documentation-apache/)
 * Hi!
    Great plugin! Thank you!
 * In your online documentation, you show some code for a .htaccess file. In regards
   to this, you say…
 * > The SUB_PATH variable needs to be adjusted accordingly if you have installed
   > WordPress in a sub directory (e.g. [http://www.example.com/blog](http://www.example.com/blog)
   > requires a change to
   > SUB_PATH=/blog/wp-content/cache/cache-enabler/).
   > Additionally, if you change the location of wp-admin, this must also be adjusted
   > in the following condition RewriteCond %{ENV:CE_PATH} !^/wp-admin/.*.
 * Could you clarify the differences (if any) between an html website in the site
   root and a WordPress blog located in a folder…
 * i.e. [http://www.example.com/blog](http://www.example.com/blog)
 * And “WordPress in a folder”…
 * i.e. The entire site is WordPress and shown from [http://www.example.com](http://www.example.com)
   but WordPress itself has been located in a sub-folder [http://www.example.com/wordpress/](http://www.example.com/wordpress/)
 * In the both cases there would be an .htaccess file in the site root as well as
   in the WordPress folder. Is there a preferred location for the .htaccess code
   you provide?
 * Thank you so much!

Viewing 1 replies (of 1 total)

 *  Anonymous User 16850768
 * (@anonymized-16850768)
 * [7 years ago](https://wordpress.org/support/topic/online-documentation-apache/#post-11600416)
 * The code you’re referencing is related to the [advanced configuration](https://www.keycdn.com/support/wordpress-cache-enabler-plugin),
   which isn’t required to use the Cache Enabler plugin. This is an optional configuration
   that allows your server to bypass PHP entirely. In most cases the default Cache
   Enabler configuration is all that’s required.
 * If you’d like to implement the advanced configuration and your WordPress website
   is [installed in its own subdirectory](https://wordpress.org/support/article/giving-wordpress-its-own-directory/),
   rather than the root, then you’d want to update the advanced configuration `SUB_PATH`
   accordingly.
 * The correct `.htaccess` file to edit would the one located in the directory of
   your WordPress website, whether that’s the root or a separate WordPress subdirectory.

Viewing 1 replies (of 1 total)

The topic ‘Online Documentation – Apache’ is closed to new replies.

 * ![](https://ps.w.org/cache-enabler/assets/icon.svg?rev=2442383)
 * [Cache Enabler](https://wordpress.org/plugins/cache-enabler/)
 * [Support Threads](https://wordpress.org/support/plugin/cache-enabler/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-enabler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-enabler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-enabler/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: Anonymous User 16850768
 * Last activity: [7 years ago](https://wordpress.org/support/topic/online-documentation-apache/#post-11600416)
 * Status: resolved