I have a serious problem with the links when using https. My knowledge with using https is poor. Although following are the processes that i’ve done so far.
Scenario:
- I have a site that uses HTTPS. ( Certified )
- I need only one CheckOut page to load in https where the checkout page is related to sub-domain. ex. member.mydomain.com
- Site is in WordPress
- Not using WooCommerce !!
Results:
- Using htaccess i managed to redirect that certain page ie. Checkout page in https and it works.
ex. https://member.mydomain.com/checkout
However, The Problem:
- The problem is that all links are dead links in the checkout page due to which it messes up the whole site. The CSS, JS files all are being loaded in https.
What i have tried so far !!
-
I tried updating the general settings url to https. So, it works but the same issue to all pages. All the links are broken.
-
Followed the instructions on this post https://wordpress.stackexchange.com/questions/75921/ssl-breaks-wordpress-css
-
Also, in this https://managewp.com/wordpress-ssl-settings-and-how-to-resolve-mixed-content-warnings
But the above did not seem to do the trick. I still have the broken links. What am i missing here? Please suggest.
Thank you
Found the solution finally.. Tried modifying the htaccess file again.
Following is what i added in my htaccess in order to fix the problem. It might be useful to someone in the future.
This solved the subdomain issue and the 500 error requests as well as the broken links problem.