Skip to main content

Forcing HTTPS on a WordPress Site

Before we begin, a couple of definitions. An https connection is the protocol that defines how the visitor and the server negotiate a secure connection.

An SSL Certificate is the document that proves the authenticity of the server.

How To Force HTTPS

This is how to force HTTPS if, for example, you have an e-commerce WordPress site and want to put it under https for security or because your payment system requires an SSL certificate.

First make sure your web host can deliver an https site. They might only provide this under certain plans and may need to move your site to another server.

Buy an SSL certificate - your web host can probably sell you one.

Activate this plugin with which you can make the whole site secure or only certain pages (such as checkout pages) secure, if you wish: WordPress HTTPS

Change the URLs to https in Settings / General in the admin panel on your site.

Add instructions to your .htaccess file to tell it to redirect any http enquiries to https. You will find the following code mentioned around the web but you may find it causes the site to hang.

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R,L]


The following code works. Add it before the comment line in the .htaccess file that reads #BEGIN WordPress

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


Now test it with this SSLLABS test and give yourself an A.

Popular posts from this blog

Giveaway Tools

After looking at an article on InsightScope about contest giveaways, I just read the FAQs for one of the tools, which is KingSumo Giveaway and I see that as at the time the FAQs were prepared, the tool doesn't integrate with Mailchimp. Instead you have to download a CSV and upload.Also, there is a warning that the tool may not be compatible with Facebook's terms in the future.Finally, there is a long, convoluted way you have to deal with duplicate content, which is described in the FAQs as follows: I’m concerned about duplicate pages for SEO We don’t create new pages, just add a parameter to your URLS. Google just sees the original page and URL structure. What we recommend if Google results are important is to run the tool, then once it looks like a winner I’d change the Title to the winner and the original URL. Remove the other titles. We are working on a fix to make this easier.Advanced users:Utilize the parameter tools in Google’s Webmaster Tools and set the Headline plugi…

MarsEdit 4

I've been using MarsEdit for just over seven years. I started with version 2, and then upgraded to version 3 in 2010.Now, in 2018, I just upgraded to version 4. This is my first post with the upgrade and I'll report on it in a little while as I get used to the new version.Here is what Daniel of Red Sweater Software has to say about his product:Browser-based interfaces are slow, clumsy, and require you to be online just to use them. Browsers are perfect for reading web content, but not ideal for creating it. If you're serious about writing for the web, you need a desktop blog editor. If you're lucky enough to have a Mac, nothing is more powerful, or more elegant than MarsEditRich and Plain Text Editing MarsEdit's editor switches easily from Plain to Rich Text, so you can work in whichever format you prefer. Love Markdown? MarsEdit can preview it and convert it to HTML if needed.Wildly Compatible Works with WordPress, Blogger, Tumblr, TypePad, Movable Type, and any …

Business For Britain Is Concerned With Business For Britain

This report in the New York Times today


LONDON — Is British business fretting about the risks of the country drifting out of the European Union? Or does it crave a looser relationship with Continental allies, one free from meddlesome regulation?
The answer to that question remained unclear Monday after a newly formed group of business leaders argued for a renegotiation of Britain’s membership terms — echoing the policy of Prime Minister David Cameron, who in January promised voters a referendum on whether the country would remain in the Union.
The new group, called Business for Britain, is intended to counter the intervention of pro-E.U. business leaders who have warned of the dangers of Britain slipping out of the 27-nation bloc and its single market of 500 million people. A statement released Monday to announce the group’s formation was signed by about 500 executives.
I think this opinion in the New York Times article is interesting:

Never much attracted to the idea of European unity,…