Https not working properly on my site

Hello to everyone,

We have created one website type of auction for our country and i was trying to enable or force redirect all http traffic to https:// , i re-configured my core.php file and i defined https;// there…

when i type it’s still working with http not going automatically to https … i tried to fix this using .htaccess but not working

when i type manually it works and in the browser “https” looks green as to other websites… but when i access my website through https:// it’s limiting some functions for example :
when i try to post any product and when i want to upload image it’s not allowing me, categories of all products are looking empty and so…

any one have any idea how to fix this?


You are purchased domain with SSL certificate with https. So you can contact with your Domain customer care and you can change to https to http.
click here

No needs to buy with SSL domain, you must set it up by yourself. Depending which server you have, you can use Let’sEncrypt project and adjust your .htaccess. Or buying a SSL certificate or order one free for one year with StartSSL (but better with Let’s encrypt, easier to manage) :wink:

You can even edit your htaccess from let’sencrypt command and then you will be all time redirected to https :wink:

Are you looking for a solution, or just venting your frustration? There is a middleware solution that would work, and there’s an .htaccess solution that should work just fine.

I am sorry for not able to contain my furstration, but the fact is it is really frustrating. The solutions you have mentioned above, where can I find? I want to see a video of it to ensure that it is working , otherwise i have to spend lot time trying on it, so far this aspect took most of my time. It is very disappointing that I could not host my project on my domain, after having spent precious time on developing it.

Hi @k4rim

Can you please share some screenshot or error or something from which we can help you.

What’s the error you are getting? What’s the error log? What did you find while debugging it? Can you please share with us.

Doing it through .htaccess is not a CakePHP thing, it’s generic and will work with any site hosted on an Apache web server. There are many tutorials out there about how to do it, basically every hosting company will have this information, and it’s pretty well universally applicable. There’s this Apache documentation, see the “Simple Redirection” section. I don’t know if there’s videos, I personally don’t learn programming tasks well from videos, so I’ve never looked for that sort of thing.

Here’s the documentation about the middleware option:
There are technical reasons why this is not as good a solution as the .htaccess method, but sometimes it’s required, or the performance hit is otherwise worth taking.

And if all else fails, post specific details here about what you’ve tried and what’s not working.

Hi @sudhir2518,

You can configure your .htaccess to redirect all your traffic to https from http. If you’ve did that facing any issue you can surely share in forum so people here can help you.

I’ve developed, uploaded, and managed ~10 websites or probably more with CakePHP framework. I’ve never faced any particular issue with framework that causes these types of issue.