My task is to add new shopping cart price rule in magento admin section. I have added rule information, then I need to add conditions for that rule .When I change the condition select box option, it's redirected to dashboard.

In the chrome console it shows 403 forbidden error in the ajax url.

Somebody told me to disable mod_security. I have written the below code in .htaceess file, but still the problem continues.

.htacesss :

SecFilterEngine Off

SecFilterScanPOST Off

I am using Magento version.

How to fix this please help me.

  • are you getting any error log ? in system.log or exception.log ? Aug 1, 2018 at 11:05
  • no i didn't got any error Aug 1, 2018 at 11:21

1 Answer 1


Modified a single line in rule.js file. (path : /var/www/vhosts/site.com/htdocsnew/js/mage/adminhtml/rule.js)


{form_key: FORM_KEY, type:new_type.replace('/','-'), id: new_id }


{form_key: FORM_KEY, type:new_type.replace('/','-'), id:"'"+new_id+"'" }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.