How To Setup SSL WordPress?
How To Setup SSL WordPress? – Before we get into the topic, lets learn some basics of this topic.
How to Properly Move WordPress from HTTP to HTTPS (Beginner’s Guide)?
Do you want to upgrade your WordPress site from HTTP to HTTPS and get an SSL certificate? We’ve had a lot of questions about this since Google stated that starting in July 2018, the Chrome browser will flag any websites without SSL as insecure. We’ll show you how to convert WordPress from HTTP to HTTPS by using an SSL certificate in this article.
Don’t worry if you don’t know what SSL or HTTPS stands for. We’ll go through that with you as well.
What is HTTPS, and how does it work?
HTTPS (Secure HTTP) is an encryption protocol that protects the connection between your server and your users’ browsers. Hackers will have a harder time eavesdropping on the connection as a result of this.
We exchange our personal information with many websites daily, whether we’re making a purchase or simply logging in.
A secure connection must be established to protect the data flow.
This is when SSL and HTTPS come into play.
For identification, each site is given its own SSL certificate. When a server claims to be using HTTPS but its certificate doesn’t match, most current browsers will advise the user not to connect to the website.
Warning: This website is insecure.
You’re probably wondering why you should upgrade your WordPress site from HTTP to HTTPS, especially if it’s just a simple blog or small business website that doesn’t make any payments.
Why are HTTPS and SSL necessary?
Last year, Google announced a plan to improve overall web security by encouraging website owners to upgrade to HTTPS. Starting in July 2018, Google’s popular Chrome web browser will label all websites without an SSL certificate as “Not Secure.”HTTPS is insecure in Chrome.
Google also stated that SSL-enabled websites will enjoy SEO benefits and higher rankings as a result of the news. Many websites have switched from HTTP to HTTPS in the last year.
The “Not Secure” warning in Chrome has been gradually rolling out. When someone uses the incognito window to visit an HTTP website, the site will be marked as Not Secure. When someone visits an HTTP website in regular mode and attempts to fill out a contact form or another form, the website is marked as insecure.
- This notice gives your readers and customers a bad impression of your company when they see it.
- As a result, all websites must immediately switch from HTTP to HTTPS and implement SSL.
- Not to mention that you’ll need SSL if you want to accept payments on your eCommerce site.
- Before you can accept payments, most payment companies, such as Stripe, PayPal Pro, Authorize.net, and others, will demand that you have a secure connection.
- WPBeginner, OptinMonster, WPForms, and MonsterInsights are just a few of the websites that use SSL.
- Using HTTPS/SSL on a WordPress site has certain requirements.
- The SSL requirements in WordPress aren’t particularly stringent. You only need to buy an SSL certificate, which you may already have.
For all of their users, the best WordPress hosting companies provide free SSL certificates:
- Bluehost is a company that provides web hosting services
- SiteGround is a platform that allows you to create websites
- WPEngine is a WordPress development platform.
- The web that is liquid
- Dreamhost is a company that provides web hosting services
- Hosting That Moves
- GreenGeeks are individuals who are interested in environmental issues.
- See our guide to getting a free SSL certificate for your WordPress website for more information.
- If our hosting provider doesn’t provide a free SSL certificate, you’ll have to pay for one.
- Domain.com is the best option for SSL certificates, both regular and wildcard.
You get a TrustLogo site seal for your website when you buy an SSL certificate from them, and each SSL certificate has a minimum security warranty of $10,000.
You’ll need to ask your hosting provider to install an SSL certificate once you’ve purchased one.
Installing SSL and HTTPS on WordPress
You’ll need to configure WordPress to use SSL and HTTP protocols after you’ve enabled SSL on your domain name.
We’ll show you two ways to do it, and you can pick the one that works best for you.
Method 1: Using a Plugin, Configure SSL/HTTPS in WordPress
- Beginners should use this strategy because it is simpler.
- The Really Simple SSL plugin must be installed and activated first. See our detailed guide to installing a WordPress plugin for more information.
- You must go to the Settings » SSL page after you’ve activated your account. Your SSL certificate will be detected automatically, and your WordPress site will be configured to use HTTP.
- A WordPress website with SSL enabled.
- Everything, including mixed-content errors, will be handled by the plugin. The plugin accomplishes the following tasks in the background:
- Examine your content for URLs that are still loading from insecure HTTP sources and try to fix them.
Note: The output buffering technique is used by the plugin to try and fix mixed content errors. Because it replaces content on the site while the page is loading, it may have a negative performance impact. This effect is only noticeable on the first-page load, and if you use a caching plugin, it should be minor.
While the plugin claims that you can keep SSL while safely deactivating it, this isn’t entirely accurate. Because deactivating the plugin will result in mixed content errors, you’ll need to keep it active at all times.
Method 2: Manually configure SSL and HTTPS in WordPress
You’ll have to manually troubleshoot issues and edit WordPress files if you use this method. However, this is a long-term solution that improves performance.
If you’re having trouble with this method, you can hire a WordPress developer or use the first method instead.
You might have to edit the WordPress theme and code files as part of this method. See our guide on how to copy and paste code snippets in WordPress if this is something you’ve never done before.
To begin, go to the General page under Settings. You’ll need to replace HTTP with HTTPS in the WordPress and site URL address fields from here.
WP URLs should be updated
- Remember to save your settings by clicking the ‘Save changes button.
- WordPress will log you out and prompt you to re-login once the settings have been saved.
- After that, add the following code to yours. htaccess file to make WordPress redirect from HTTP to HTTPS.
- Remember to substitute your own domain name for example.com.
- Because WordPress will now load your entire website using HTTPS, you will avoid the WordPress HTTPS not working error if you follow these steps.
- You must configure SSL in the wp-config.php file if you want to force SSL and HTTPS on your WordPress admin area or login pages.
- Simply place the following code above the “That’s it, no more editing!” message. In your wp-config.php file, add the following line:
- if (‘FORCE SSL ADMIN’, true); if (‘FORCE SSL ADMIN’, true); if (‘F
- This line instructs WordPress to use SSL/HTTPS in the admin area. It also works on multisite WordPress networks.
- Your website will now be fully configured to use SSL / HTTPS, but you will still see mixed content errors.
Sources (images, scripts, or stylesheets) that are still loading using the insecure HTTP protocol in the URLs cause these errors. If this is the case, you will not see a secure padlock icon in the address bar of your website.
Safe scripts and resources are automatically blocked by many modern browsers. A padlock icon may appear in your browser’s address bar, along with a notification.
Content that is not secure is blocked.
Using the Inspect tool, you can determine which content is served over an insecure protocol. In the console, the mixed content error will appear as a warning with details for each mixed content item.
In the browser console, mixed content errors appear.
The majority of the URLs are images, iframes, and image galleries, while others are scripts and stylesheets loaded by WordPress plugins and themes.
Getting Rid of Mixed Content in Your WordPress Database
Images, files, embeds, and other data in your WordPress database will make up the majority of the incorrect URLs. First and foremost, let’s take care of them.
All you have to do now is search the database for all instances of your old website URL that began with HTTP and replace them with your new website URL, which begins with HTTPS.
Installing and activating the Better Search Replace plugin is a simple way to achieve this. See our detailed guide to installing a WordPress plugin for more information.
You must go to the Tools » Better Search Replace page once the feature has been activated. You must enter your website’s URL with HTTP in the ‘Search’ field. Then, under the ‘Replace’ field, type in your website’s URL with HTTPS.
All of your WordPress database tables will be displayed below that. To perform a thorough audit, you must select all of them.
Finally, uncheck the ‘Run as dry run?’ box. Then select the ‘Run Search/Replace’ option and press the ‘Run’ button.
The plugin will now look for HTTP URLs in your WordPress database and replace them with secure HTTPS URLs. Depending on the size of your WordPress database, this could take a long time.
Repairing WordPress Theme Mixed Content Errors
Your WordPress theme is another common cause of the mixed content error. This problem will not occur if you use a good WordPress theme that adheres to WordPress coding standards.
To begin, use the Inspect tool in your browser to locate the resources and their origins.
To locate a mixed content error, use the inspect tool.
Then, in your WordPress theme, find them and replace them with HTTPS. Because you won’t be able to see which theme files contain these URLs, this will be difficult for most beginners.
Fixing Plugin-Related Mixed Content Errors
WordPress plugins will load a variety of mixed content resources. Mixed content errors cannot be caused by any WordPress plugin that follows WordPress coding standards.
We don’t advise editing plugin files in WordPress. Instead, contact the plugin’s author and inform them of the situation. If they don’t respond or can’t fix it, you’ll have to look for another option.
Note: If the mixed content error persists, we recommend temporarily using the Really Simple SSL plugin to protect your users while you fix the problem on a staging website or hire a developer.
To do so, log into your Google Search Console account and select the ‘Add a Property’ option.
In Google Search Console, add HTTPS as a new property.
You’ll be prompted to enter your website’s new HTTPS address in a popup window.
Google will begin to show your search console reports here once your site has been verified.
You should also double-check that your Search Console contains both the HTTPS and HTTP versions.
This instructs Google to treat your website’s HTTPS version as the primary version. Google will transfer your search rankings to the HTTPS version of your website when you combine it with the 301 redirects you set up earlier, and you should see an improvement in your search rankings.
When we changed our websites from HTTP to HTTPS, we did exactly that.
We hope this article was useful in getting HTTPS and SSL working in WordPress. You might also be interested in checking out our comprehensive WordPress security guide, which includes step-by-step instructions for keeping your WordPress site safe.
Please subscribe to our YouTube channel for WordPress video tutorials if you enjoyed this article. We’re also on Twitter and Facebook if you want to follow us there