read the comments for the right path and add the code in the beginning of the .httacces before wordpress
i put it in exactly as you said and i get an internal server error 500
P.S. I executed that script and copied the path from the output of it.
@jpw94 : this thread is about the Litespeed HTTP server. Are you using it? Or are you using Apache?
yes. apache. does that make a difference in how the htaccess is configured?
You must use a PHP INI file.
Maybe your host is using suPHP ? Try to run the installer again and, in the “System Configuration” page, select “Apache + suPHP” and then choose “php.ini”.
that didn’t work either. I confirmed that the host is using CGI/Fast CGI
1. Besides NinjaFirewall directives, do you have anything else in your php.ini file?
2. Can you try to rename it to “.user.ini” (its name starts with a ‘.’ dot)? You may need to wait up to 5 minutes before PHP reloads it.
nothing else in php.ini
i’ve renamed it.
If it did not make any difference, then rename it back to “php.ini”.
1. Download this file.
2. rename it to “ninjacheck.php”.
3. upload it to your website.
4. the go to “YOUR_WEBSITE.COM / ninjacheck.php” and paste the output here.
The solution (.user.php) worked!
Thanks for the prompt responses!