How to deactivate/remove https on localhost project from online

I’m working on a messy customer project. To debug it, I would like to work on it on localhost. I’m using Wampserver. This is what I did : 1 – I made a virtualhost httpd-vhosts.conf <VirtualHost *:80> ServerName devfoo.pro DocumentRoot “c:/path/to/project/src/www” <Directory “c:/path/to/project/src/www/”> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> 2 … Read more

Menu links only using http after enabling https, unable to redirect http links

I have a WordPress website on a Bluehost shared hosting server and since I have multiple websites in my space, I have this particular folder in its own folder under public_html. This means that I have a .htaccess file in public_html, which redirects my domain to the specific website folder. I also have another .htaccess … Read more

Automatic HTTPS connection/redirect with node.js/express

I’ve been trying to get HTTPS set up with a node.js project I’m working on. I’ve essentially followed the node.js documentation for this example: // curl -k https://localhost:8000/ var https = require(‘https’); var fs = require(‘fs’); var options = { key: fs.readFileSync(‘test/fixtures/keys/agent2-key.pem’), cert: fs.readFileSync(‘test/fixtures/keys/agent2-cert.pem’) }; https.createServer(options, function (req, res) { res.writeHead(200); res.end(“hello world\n”); }).listen(8000); Now, … Read more

How to modify the .htaccess to force ssl on login and admin pages

I have the following code to force ssl on the login and admin pages via the .htaccess on a the domain example.com <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} ^/wp-(admin|loginurl) [NC] RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} example\.com$ [NC] RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R,QSA] </IfModule> I’m also using iThemes Security ‘Hide-backend’ to change the wp-login to ‘loginurl’ due … Read more

Mixed Content with SSL, wordpress behind a reverse proxy

I ran into mixed content with SSL issues. I’ve applied for Let’s encrypt SSL certificate for my test wordpress site behind a reverse proxy(articaproxy). The same SSL certificate has been deployed in reverse proxy server and wordpress virtual host. The reverse proxy http/https redirect works fine. I forced the siteurl and home url to https … Read more

SSL: How to make customizer images Protocol Relative in WordPress?

I’m trying to eliminate “mixed content” on my website and have done so with every area of the site except for one. Any image uploaded via the Theme Customizer is not protocol relative nor https, all images uploaded via the customizer come up “http://”. The Customizer uses the Media Gallery uploader but doesn’t seem to … Read more