Keywords: WordPress - AWS - Technical issue - Secure Connections (SSL/HTTPS) bnsupport ID: af772af5-f0ee-f47d-8219-e7d60da30f49 Description: I'm experiencing really similar issues to this previous post:
We assume you are using Bitnami to deploy your application.
Which version of the application are you using?: Wordpress 4.8
Please choose how you got the application: Installer (Windows, Linux, macOS), cloud image (AWS, GCE, Azure, ...) or VM (VMDK, VBOX): I've used an AWS AMI
Have you installed any plugin or modified any configuration file?: I've set the site under /blog using this post
I have a site www.mysite.com on a…
I have the wp-config.php with this:
I followed steps recommended by
@Fireplace, Please follow the next steps to move wordpress from / to /blog. Your /opt/bitnami/apps/wordpress/conf/httpd-prefix.conf should look like this Alias /blog/ "/opt/bitnami/apps/wordpress/htdocs/" Alias /blog "/opt/bitnami/apps/wordpress/htdocs" Include "/opt/bitnami/apps/wordpress/conf/httpd-app.conf" Edit the following in /opt/bitnami/apps/wordpress/conf/httpd-app.conf From: #RewriteBase /wordpress/ To: RewriteBase /blog/ From: RewriteRule . /index.php [L] To: R…
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.