Title: Adding keep alive
Last modified: August 31, 2016

---

# Adding keep alive

 *  Resolved [Mariette](https://wordpress.org/support/users/mariette-jackson/)
 * (@mariette-jackson)
 * [10 years ago](https://wordpress.org/support/topic/adding-keep-alive/)
 * Hi
 * For optimisation purposes I have added this code:
 * <ifModule mod_headers.c>
    Header set Connection keep-alive </ifModule>
 * to the first box in the Root htaccess file custom code screen but it doesn’t 
   seem to work.
 * I have just been told it needs to go after #END wordpress tag so could you tell
   me which box to put it in please.
 * many thanks
    mariette
 * [https://wordpress.org/plugins/bulletproof-security/](https://wordpress.org/plugins/bulletproof-security/)

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

 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [10 years ago](https://wordpress.org/support/topic/adding-keep-alive/#post-7437700)
 * Did you do ALL of the Custom Code steps?
 * > Root htaccess File Custom Code Setup Steps
   >  1. Enter your custom code in the
   > appropriate Root Custom Code text box. 2. Click the Save Root Custom Code button
   > to save your Root custom code. 3. Go to the Security Modes page and click the
   > Create secure.htaccess File AutoMagic button. 4. Select the Activate Root Folder
   > BulletProof Mode Radio button and click the Activate|Deactivate button.
 * The mod_headers code and all/any htaccess caching code should ALWAYS go above
   the standard WordPress Rewrite block of code and/or the BPS WordPress Rewrite
   customized block of code, which is the same code as the WordPress Rewrite block
   of code, but has been customized by BPS.
 * Some people are saying that keep-alive may not work on shared hosting depending
   on whether or not your host has turned on keep-alive in the ​Apache configuration
   file: httpd.conf. [http://stackoverflow.com/questions/2200566/keep-alive-feature-in-htaccess](http://stackoverflow.com/questions/2200566/keep-alive-feature-in-htaccess)
 * My particular web host has keep-alive turned on by default.
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [10 years ago](https://wordpress.org/support/topic/adding-keep-alive/#post-7437908)
 * Did this answer all of your questions? If so, please resolve this thread. If 
   not, please post any additional questions you may have. Thanks.
 * Thread Start Date: 5-30-2016 to 5-31-2016
    Current Date: 6-3-2016
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [10 years ago](https://wordpress.org/support/topic/adding-keep-alive/#post-7437930)
 * Assuming all questions have been answered – the thread has been resolved. If 
   the issue/problem is not resolved or you have additional questions about this
   specific thread topic then you can post them at any time. We still receive email
   notifications when threads have been resolved.
 * Thread Start Date: 5-30-2016 to 5-31-2016
    Thread Resolved/Current Date: 6-6-
   2016
 *  Thread Starter [Mariette](https://wordpress.org/support/users/mariette-jackson/)
 * (@mariette-jackson)
 * [10 years ago](https://wordpress.org/support/topic/adding-keep-alive/#post-7437943)
 * I’m very sorry I didn’t respond earlier. Yes, your reply answered my questions.
   I did have the code in the right place but it turned out that the web host doesn’t
   have keep-alive turned on.
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [10 years ago](https://wordpress.org/support/topic/adding-keep-alive/#post-7437944)
 * No problem on responding or not. We just resolve the threads after a certain 
   amount of time goes by so they don’t pile up and we are not rechecking them (
   ie maintain sanity at all times). 😉 Glad you got it figured out.

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

The topic ‘Adding keep alive’ is closed to new replies.

 * ![](https://ps.w.org/bulletproof-security/assets/icon-128x128.png?rev=1731938)
 * [BulletProof Security](https://wordpress.org/plugins/bulletproof-security/)
 * [Support Threads](https://wordpress.org/support/plugin/bulletproof-security/)
 * [Active Topics](https://wordpress.org/support/plugin/bulletproof-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bulletproof-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bulletproof-security/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [AITpro](https://wordpress.org/support/users/aitpro/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/adding-keep-alive/#post-7437944)
 * Status: resolved