0

I have project which is here http://www.example.com. I can simply login with this link but can't login https://www.example.com. How to change the CakePHP default redirection.

The site is working properly when I use http but not working with https.

5
  • 1
    not working in what way? (-1 for a "it's broken" question with no information) Commented Aug 22, 2013 at 9:52
  • 1
    What's a "default redirection"? Is your site already configured to work under HTTPS? Commented Aug 22, 2013 at 10:01
  • @ Álvaro G. Vicario 1 thx! actually have no idea about http and https detail. I just can login with https... why? Commented Aug 22, 2013 at 10:04
  • You can or you cannot login with HTTPS? If you cannot, what exactly prevents you from doing it? If you don't know if your site works with HTTPS, how can we know? Commented Aug 22, 2013 at 10:06
  • Assuming https://www.example.com exists and is accessible, CakePHP does not change host or protocol by default - whatever the problem is it's a misunderstanding, application config or application code (none of which is possible to solve from the info in the question). Commented Aug 22, 2013 at 10:12

1 Answer 1

3

You can use SecurityComponent::requireSecure (See) to force SSL for all actions, but as said before SSL should be enabled / supported on/by your webserver. It seems to me that this is not really a CakePHP problem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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.