How to disable mod_security in .htaccess?

Issue:
  1. Having 403 error page when uploading files to your directory using your CMS application like Wordpress.
  2. Upload file end up with broken link.
Reason:

This might be due to mod security which are enabled on all of our hosting servers. This module is a good module which help to provide a platform for customer to have intrusion detection and prevention for web applications.

Solutions:

To solve this, you will need to add below line into your .htaccess file.

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

Was this answer helpful?

Also Read

Turn On/Off Directory Browsing

For Linux server: Turn on Directory Browsing -create a .htaccess file in the specific directory...

I'm receiving a blank page

If your website or web application is displaying nothing but a blank, white page, then chances...

How do I install Joomla?

Download the latest stable of Joomla release from http://www.joomla.org/download.html. Unzip...

How to check your bandwidth usage in cPanel?

Bandwidth devices reads the traffic data that can be displayed in graph. Bandwidth usage is a sum...

What tools are available to optimize my website?

There are many free tools available to help you optimize your website: Pear Analytics...