Bastify | Hosting, domain registry, vps, mail and SSL

How to do an SSL redirect

Bussiness 17 December, 2023


Since the European Union has endorsed the General Data Protection Regulation (GDPR) bill, it underlines the importance of data protection. This bill was designed to protect the sensitive data that consumers share online and to give customers and web users the security they need when conducting online transactions and disclosing private details to businesses over the web. Many modern browsers already comply with these laws, and provide warnings to users, through a clear “this website is not safe” banner, whenever they venture to unsafe websites.

Advantages of SSL

As a website owner, at bastify we recommend that your website has to be with SSL, Secure Sockets Layer, you have more to gain than lose, the technology that enhances security on HTTPS websites (the "support" It is safe). Before we look at how to run an SSL redirect, let&;#39;s briefly look at the reasons why you should protect your website with SSL:

< span style="box-sizing: border-box; font-weight: bold;">Web Security

Web hackers are common, and private and confidential data all too often finds its way into the public domain thanks to unauthorized parties accessing data on private servers, or data transmitted between users, web and hosting servers. You must protect your website with SSL to prevent external third parties from listening to or capturing data from transactions executed between your servers and your visitors.

Establish trust

You can improve your traffic numbers by helping your visitors feel safe when they interact with your website and share information with you. When they see that your website has SSL security, they will be more willing to interact with you online.

For example, if you have An eCommerce store will, at some point, be asked to fill out information such as their credit card details before they can make a purchase. If your customers can see that your website is not protected by SSL when they perform a Google search, then someone outside the transaction who is "listening" to web server activity could access these details. They can then use the data they collect from your transactions for fraudulent activities. Establishing and maintaining trust can impact your traffic and sales as much as an intuitive user interface and a good service offering.

SEO Privileges

The goal of all online marketers is to get their website ranked high on search engine results pages. One way to improve your SEO is to secure your website with SSL, as the level of SSL security you have is one of the many criteria modern search engines use to rank websites. If you don&;#39;t have an SSL certificate on your website, it will be difficult for you to develop the online visibility you need to be successful.

Many web hosting providers now offer free SSL certificate options for new domains. Others offer cheap and affordable rates to install SSL security on existing web pages.

SSL Redirection

Once you have SSL installed , you should redirect visitors who are still accessing your old HTTP website to your new HTTPS website. You can redirect visitors to your HTTPS domain automatically, even when they try to use your old HTTP domain. Which redirection approach you should use depends on the type of server running your website. Below we describe how to do this with some popular web server deployment configurations:

SSL Redirection for Apache Server

If you run your website on the Apache server, you can run an SSL redirect to your new HTTPS page by following the steps below:

  • Log in to your Apache server
  • Navigate to the conf folder and select the httpd.conf backup file
  • View your httpd.conf through your Vi editor< /li>
  • Load the mod_rewrite.so module

If you see this command: LoadModule rewrite_module modules / mod_rewrite.so, uncomment and at the end of the file add the following command:

RewriteEngine On RewriteCond% {HTTPS} Off RewriteRule (. *) Https: //% {HTTP_HOST}% {REQUEST_URI}.

To see if the reset worked, restart Apache and try visiting your old HTTP to see if it redirects you.

SSL Redirect for Nginx Server

If you are running an Nginx server, you can adjust it so that your old HTTP web is redirected to HTTPS by following these steps:

  • Login to your Nginx server
  • Select the backup copy of the Nginx.conf file
  • In the directive, add the command: return 301 https: // $ server_name $ request_uri;
  • Make sure it is saved and then restart your Nginx server. Your website should be redirected to HTTPS.

SSL Redirect for Cloudflare

If you use Cloudflare, you can run an SSL redirect as follows:

  • Sign in to your Cloudflare account and select the website/domain you want to redirect
  • Navigate to the Crypto tab, navigate down and select the switch you find there to turn ON
  • An alternative way Enabling HTTPS in Cloudflare involves using page rules:
  • Go to page rules
  • Navigate to the “create page” icon and click on it
  • Enter the URL you want to redirect
  • Click on the “Add Settings” tab, then browse what appears and click “Always use HTTPS”
  • At the bottom, click on the tab that says "Save and display", and you&;#39;re done

SSL Redirect for SUCURI

Like Cloudflare, if you use SUCURI to run your website and want to configure it for SSL, here&;#39;s what you do:

  • Log in to your SUCURI account
  • Click “HTTPS FULL” on the SSL mode page
  • Navigate to Project Redirection and click “web HTTPS only”
  • Click the “Save” tab below, and in no time your website will automatically run HTTPS by default

Now that you know how to do an SSL redirect, it&;#39;s time to start putting it into practice. As a leading hosting provider, Bastify we are here to help you start, build and secure your WordPress website from start to finish. For more information on how to create a secure connection for your website, Contact our team of experts today.

Subscribe now to our Newsletter

All your information is completely confidential

We're in touch!

We are delighted to hear from you

Phone

+ 34 900 433 204

E-mail

info@bastify.com

Address

Modesto Lafuente 25

España(Madrid), 2803