Title: litespeed code in htaccess
Last modified: April 27, 2017

---

# litespeed code in htaccess

 *  Resolved [ac1643](https://wordpress.org/support/users/ac1643/)
 * (@ac1643)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/litespeed-code-in-htaccess/)
 * Hi,
 * My server runs litespeed and I use the following code in my htaccess file:
 * <IfModule Litespeed>
    RewriteEngine On RewriteRule .* – [E=noconntimeout:1] RewriteRule.*–[
   E=noabort:1] </IfModule>
 * Does it matter if this goes before or after the ninja firewall code?
 * Thanks

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

 *  Thread Starter [ac1643](https://wordpress.org/support/users/ac1643/)
 * (@ac1643)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/litespeed-code-in-htaccess/#post-9074171)
 * Actually I also get an error on the same site with or without the litespeed code.
   The error is:
 * Warning: Unknown: failed to open stream: Permission denied in Unknown on line
   0
 * Fatal error: Unknown: Failed opening required ‘…/public_html/wp-content/nfwlog/
   ninjafirewall.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in Unknown
   on line 0
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/litespeed-code-in-htaccess/#post-9075000)
 * I recommend to add the directive at the top of the .htaccess file.
 * Regarding the fatal error, make sure the `auto_prepend_file` path is correct 
   and points to the ninjafirewall `....wp-content/nfwlog/ninjafirewall.php` script(
   it must include the full path to the script).
 *  Thread Starter [ac1643](https://wordpress.org/support/users/ac1643/)
 * (@ac1643)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/litespeed-code-in-htaccess/#post-9081319)
 * Thanks, where do I check/change the auto_prepend_file path (sorry I’m not that
   advanced with these things)?
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/litespeed-code-in-htaccess/#post-9081841)
 * Check the full path to the file as it is indicated in your .htaccess file, beside
   the `auto_prepend_file` directive and make sure it points to an existing file.
   Otherwise, it would output a fatal error if the file is not found.
 *  Thread Starter [ac1643](https://wordpress.org/support/users/ac1643/)
 * (@ac1643)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/litespeed-code-in-htaccess/#post-9092044)
 * Thanks

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

The topic ‘litespeed code in htaccess’ is closed to new replies.

 * ![](https://ps.w.org/ninjafirewall/assets/icon-256x256.png?rev=976137)
 * [NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall](https://wordpress.org/plugins/ninjafirewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninjafirewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninjafirewall/)
 * [Active Topics](https://wordpress.org/support/plugin/ninjafirewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninjafirewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninjafirewall/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [ac1643](https://wordpress.org/support/users/ac1643/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/litespeed-code-in-htaccess/#post-9092044)
 * Status: resolved