I have a Magento website and have enabled https:// across the whole site by configuring the unsecure Base URL. The site also uses the following API URL which CANNOT be https, but because of the config settings is redirects to https:


Is there a way that I can exclude certain URLs from using secure URLs?

  • enable https only for secure pages and than use https for required pages. so that remaining pages will exclude from https. Jan 6, 2016 at 18:04

1 Answer 1


Extend Magento's controller that forces the redirect to https (about the controller). When your module detects this URL instruct Magento to bypass the https redirect.

  • If you continue to have problems I'll provide a code example. Jan 9, 2016 at 22:09
  • Im having the exact same problem and it's giving me headaches. @AdamMoss We're you able to fix this using iusemagentonow's answer? Could either of you post an code example?
    – Ottonet
    Jan 26, 2016 at 12:31
  • I've played around in this file but I can't identify how to stop this redirecting. I tried putting this around the rewrite method in the dispatch(0 function: if ($request->getRequestUri() !== "/api/v2_soap/index/?wsdl=1") { $this->_getRequestRewriteController()->rewrite(); } but no luck.
    – Adam Moss
    Feb 2, 2016 at 11:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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