Reputation: 29
When I access to EC2 with http://XXX.XXX.XXX.XXX, the access was redirected to https://XXX.XXX.XXX.XXX. Also, EC2 instance does not have certificate for HTTPS.
How do I stop the redirection. By the way, I am using AMIMOTO of Wordpress.
I am looking forward to your reply.
Upvotes: 0
Views: 1064
Reputation: 3387
There are 2 things to consider:
HTTPS redirect is done via server redirect, usually with HTTP status code 301. Depending on your server (nginx, apache etc) there are different ways to achieve that, but assuming it's apache, take a look at this to know what to look for
Once you are hit with redirect, modern browsers cache that 301 response for a long time. So even after you disable it you can still experience redirect. Here's example how to clear that in Chrome. This will obviously affect only your browser and if any customers hit the page, they will still be redirected for quite some time.
But best approach would undeniably be to set up and enable SSL.
Upvotes: 1