How can I disable mod_security in .htaccess file?

后端 未结 7 1662
盖世英雄少女心
盖世英雄少女心 2020-12-02 22:42

How can we disable mod_security by using .htaccess file on Apache server?

I am using WordPress on my personal domain and posting a post whi

7条回答
  •  日久生厌
    2020-12-02 23:24

    In .htaccess file at site root directory edit following line:

    
    
    SecFilterEngine Off
    SecFilterScanPOST Off
    
    
    
    
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    

    Just keep the mod_security rules like SecFilterEngine and parts apart from each other. Its works for apache server

提交回复
热议问题