Keywords: WordPress - AWS - Technical issue - Secure Connections (SSL/HTTPS)
bnsupport ID: af772af5-f0ee-f47d-8219-e7d60da30f49
I'm experiencing really similar issues to this previous post:
I have the wp-config.php with this:
I followed steps recommended by @tomasp here:
but wordpress keeps using the http://www.mysite.com to generate the assets URL's, which obviously are blocked by the browser.
Also there are some url that are redirected to the EC2 public dns instead of the custom domain I've set.
For example, whenever you go to https://www.my-site.com/blog, Wordpress should automatically redirect to https://www.my-site.com/blog/ (the root). But instead it is redirecting to https://EC2 Public DNS/blog/.
The same happens when I try to log in to the admin. The redirect URL is pointing to the EC2 public dns, https://EC2 Public DNS/blog/wp-admin/index.php
The other issue I have is that when a post is accessed with an ending /, it works fine, but when they are accessed without the ending /, the are redirected to the EC2 Public DNS url.
Say, for example, that I go the following post url: https://www.my-site.com/blog/page/my-post. It gets redirected to https://EC2 Public DNS/blog/page/my-post/ (notice the slashes).
But if I go to the same post with the url https://www.my-site.com/blog/page/my-post/ (notice the ending slash), it works perfectly (does not redirect).
Unfortunately the series of solutions presented in that post are either outdated or not working for me.
Any help would be much appreciated.