PHP.ini & htaccess sub dir

  • Answered
server I'm on says: Server API CGI/FastCGI
says: /usr/local/lib/php.ini
I don't see this dir or php.ini
htaccess in sub dir isn't loading (http_406). Haven't tested the public_html htaccess. WP installed in public_html. Need htaccess working on sub dir. Can you point me in the right direction?
Hello False007, I reviewed your .htaccess file - it's definitely working. We commented out your re-direct. And then added the re-direct using the Cpanel Re-direct tool and this is what it places in the .htaccess: RewriteCond %{HTTP_HOST} ^diztrix\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.diztrix\.com$ RewriteRule ^test\.html$ "http\:\/\/diztrix\.net\/" [R=301,L] Upon testing the link, it works. Please review this link for further information on using the re-direct: Setting up a Redirect using the Cpanel If you have any further questions, please contact technical support or leave a comment at the bottom of the page. Regards, Arnel C.
Hello False007, Thank you for your question. You will not see this php.ini file as it is the server's default, and is located above your account's access level. 406 errors are related to Mod Security, which can be disabled in your cPanel. Just create an .htaccess file and it will work, as long as a rule set in an .htaccess file in the parent directory is not affecting it. Here is a link to our article on the .htaccess. If you have any further questions, feel free to post them below. Thank you, -John-Paul