1

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:

http://www.domain.com/index.php/api/v2_soap/index/?wsdl=1

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

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

1 Answer 1

2

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.

answered Jan 8, 2016 at 3:26
3
  • If you continue to have problems I'll provide a code example. Commented 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? Commented 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. Commented Feb 2, 2016 at 11:20

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.