Which HTTP headers to use for subdomain embedding?

I have a WordPress site hosted on LightSail (which uses bitnami). The domain is https://example.com On a subdomain https://sub.example.com I have another server running. On this server, I want to embed a page from the main domain https://example.com/a-page. Currently, I am getting errors that permission is denied. I have updated the htaccess file like so: … Read more

How to find out if you’re using HTTPS without $_SERVER[‘HTTPS’]

I’ve seen many tutorials online that says you need to check $_SERVER[‘HTTPS’] if the server is connection is secured with HTTPS. My problem is that on some of the servers I use, $_SERVER[‘HTTPS’] is an undefined variable that results in an error. Is there another variable I can check that should always be defined? Just … Read more

How to properly force https and www on multisite with Apache HTAccess

I have a wordpress multisite in network mode via wp multi network plugin. I’ve been trying to use .htaccess rules to force all urls to be https://www. eg: https://domain.com to https://www.domain.com http://domain.com to https://www.domain.com http://www.domain.com to https://www.domain.com I’ve found these variations online but I’m not sure what would be the cleanest way to do this? … Read more

wp-admin redirect loop with ssl

I currently have a site running on HTTPS with an SSL plugin activated Website: https://www.greenwichsentinel.com SSL Plugin: Really Simple SSL WordPress Version: 4.0.7 (Multisite) Everything seem configured correctly, however when trying to log into the site or view any dashboard panel i get caught in a redirect loop. For example, trying to log in through … Read more