• chaithanyakrishnapati

    (@chaithanyakrishnapati)


    Today some one tried to hack my site and i posted related to that in How-To and Troubleshooting and after that i installed ninja firewall and i was on my root directory and .htaccess is there. It showed me error so i deactivated it and added another wp firewall and found that my .htaccess is not writable. So i wanted to see the problem so i logged in to cpanel and there is no .htaccess now. There are 4 backups of .htaccess before and after disabling ninja firewall. So how bad is it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi

    NinjaFirewall does not alter, delete or lock the .htaccess when it is installed and running.
    I think you may need to check with the other firewall you installed, some of them do write to the .htaccess.
    You can try to restore one of the 4 .htaccess you have, or create a new one using WordPress default code:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Thread Starter chaithanyakrishnapati

    (@chaithanyakrishnapati)

    nintechnet i have .htaccess file but its hidden sorry. I got error when i tested firewall and after installing another plugin i figured out that my .htaccess is not writable so can you tell me how to make it writable for plugins only?

    If you are using cPanel, see those articles about changing permissions:
    cPanel File Permissions Tutorial
    How to change permissions (chmod) of a file

    Thread Starter chaithanyakrishnapati

    (@chaithanyakrishnapati)

    nintechnet is it okay to alow the root .htaccess writable? Is there any way to allow only plugins to get access like security plugins which needs code to be written in .htaccess

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘.htaccess is not showing after installing ninja firewall.’ is closed to new replies.