Title: Installation: manually adding code to .htaccess
Last modified: August 21, 2016

---

# Installation: manually adding code to .htaccess

 *  [rantanplan41](https://wordpress.org/support/users/rantanplan41/)
 * (@rantanplan41)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/installation-manually-adding-code-to-htaccess/)
 * Hi!
 * I have already added the informed code to the very BEGINNING of my .htaccess 
   file, however the installation NOT complete message is still there…
 * What else should I do?
 * Thanks!
 * [http://wordpress.org/extend/plugins/wp-fast-cache/](http://wordpress.org/extend/plugins/wp-fast-cache/)

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

 *  Plugin Author [Website Launches](https://wordpress.org/support/users/taylorhawkes/)
 * (@taylorhawkes)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/installation-manually-adding-code-to-htaccess/#post-3826531)
 * Did you add all of it including the comments?
 * Is you .htaccess file in the root directory of your website?
 *  [Jason Damisch](https://wordpress.org/support/users/jasondamisch/)
 * (@jasondamisch)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/installation-manually-adding-code-to-htaccess/#post-3826540)
 * Seriously,
 * I have the same problem. I put the text into the beginning of the file and it
   still is acting like it is not there. Why?
 * I’m giving up immediately.
 *  [Youdaman](https://wordpress.org/support/users/youdaman/)
 * (@youdaman)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/installation-manually-adding-code-to-htaccess/#post-3826553)
 * Hi Taylor,
 * I’m having the same trouble. My .htaccess is actually writable by Apache however
   it didn’t detect that. So I copy/pasted the config code but the plugin still 
   complains setup is incomplete.
 * Here is a screenshot:
 * [https://dl.dropboxusercontent.com/u/17597312/Wp%20Fast%20Cache%20%E2%80%B9%20micro-cruising%20%E2%80%94%20WordPress.png](https://dl.dropboxusercontent.com/u/17597312/Wp%20Fast%20Cache%20%E2%80%B9%20micro-cruising%20%E2%80%94%20WordPress.png)
 * I enjoyed your intro video and was hoping to use your plugin in favour of the
   bulkier ones out there. I hope you can resolve the issue — my only guess as a
   developer is you’re not detecting the file permissions correctly, or trying to
   open the file but failing for some reason, which would explain both the error
   message saying htaccess isn’t writeable as well as it not being able to read 
   the config is correct.
 * Stew
 *  Plugin Author [Website Launches](https://wordpress.org/support/users/taylorhawkes/)
 * (@taylorhawkes)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/installation-manually-adding-code-to-htaccess/#post-3826554)
 * Youdaman,
 * Thanks for info – not sure of this issue.
 * I am checking this file for write permissions:
    $htaccess=$_SERVER[‘DOCUMENT_ROOT’].”/.
   htaccess”; if(!is_writable($htaccess)){ return 2; }
 * Does that correctly reference your .htaccess file? It would be great to get some
   help to trouble shoot this bc its clearly an issue.
 *  [Youdaman](https://wordpress.org/support/users/youdaman/)
 * (@youdaman)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/installation-manually-adding-code-to-htaccess/#post-3826555)
 * $_SERVER[‘DOCUMENT_ROOT’] is “/htdocs” whereas my site lives in “/var/www/micro-
   cruising.com.au/” — I’ve got virtual hosts setup.
 * You’re probably better off using something like:
 * `realpath(dirname(__FILE__))`
 * Or better still one of the directory/path functions here:
 * [http://codex.wordpress.org/Determining_Plugin_and_Content_Directories](http://codex.wordpress.org/Determining_Plugin_and_Content_Directories)
 * I bet getting it working using one of those will clear up many of the support
   questions and complaints 😉
 *  Plugin Author [Website Launches](https://wordpress.org/support/users/taylorhawkes/)
 * (@taylorhawkes)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/installation-manually-adding-code-to-htaccess/#post-3826556)
 * Yep, this is now on the docket as bug. Fix will come in 1.5 pretty soon. –
    Thanks
   for help on this issue.

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

The topic ‘Installation: manually adding code to .htaccess’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-fast-cache.svg)
 * [WP Fast Cache](https://wordpress.org/plugins/wp-fast-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fast-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fast-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fast-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fast-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fast-cache/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [Website Launches](https://wordpress.org/support/users/taylorhawkes/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/installation-manually-adding-code-to-htaccess/#post-3826556)
 * Status: not resolved