• Resolved ac1643

    (@ac1643)


    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

    (@ac1643)

    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

    (@nintechnet)

    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

    (@ac1643)

    Thanks, where do I check/change the auto_prepend_file path (sorry I’m not that advanced with these things)?

    Plugin Author nintechnet

    (@nintechnet)

    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

    (@ac1643)

    Thanks

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

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