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

How to force browser cache on my website?

Issue: When you check your website using http header tools you can see that your website is not...

How do I install Joomla?

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

How to redirect page from html file

Place the following HTML redirect code between the <HEAD> and </HEAD> tags of your...

What is hotlink protection?

Hotlink protection is disabling external use of your resources. For instance, if your website has...

My images are broken, or don't show up!

Firstly, check to see whether they are uploaded to our server and are in the correct...