Seo Forum

Search Engine Optimization => SEO Basics => Topic started by: AdityaM7 on 08-08-2017, 01:58:57

Title: How to redirect site from http to https?
Post by: AdityaM7 on 08-08-2017, 01:58:57
I have purchased SSL certificate for my site.

But I have more than 1 site purchased from go daddy. So whenever I add htaccess file to my site, the other sites, stop working.

What should I do?

I have talked many times to customer support but this problem never gets solved.

My site is working on both URLs http & https.

Suggest something.
Title: Re: How to redirect site from http to https?
Post by: Sojan Babu on 08-11-2017, 01:58:46
Using the following code in your .htaccess file automatically redirects visitors to the HTTPS version of your site:

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

Title: Re: How to redirect site from http to https?
Post by: seoanubhavgarg on 08-11-2017, 06:06:46
Hello AdityaM7,

I was facing the same issue with SSL for my DataEntryAdroits domain but this issue has been resolved.

One Note for you here buddy - .htaccess does not work in GoDaddy, you need to upload the web.config file.

But before that, please see the below points to check if your domain fulfills the criteria.

First, add SSL Verified seal on your website footer - See the image as attached

Second: remove all images that are being called on your website from any third party URL and also remove all (http)  - unsecured URLs from your domain

Third: apply this code to your web.config file

<configuration>
<system.webServer>
<rewrite>
    <rules>
   <rule name="HTTP to HTTPS redirect" stopProcessing="true">
   <match url="(.*)" />
   <conditions>
      <add input="{HTTPS}" pattern="off" ignoreCase="true" />
   </conditions>
   <action type="Redirect" redirectType="Permanent" url="https://www.example.com/{R:1}" />
</rule>   
    </rules>
</rewrite>
</system.webServer>
</configuration>

You can simply place the main domain by replacing www.example.com or if your preferred search domains s example.com, then replace it with simply yourdomain.com.

After all, those, upload the web.config file to ftp in public_html folder.

That's it. You are all set to go :)

Good Luck

Title: Re: How to redirect site from http to https?
Post by: AmarInfotech on 08-27-2017, 23:47:30
Recently Google has announced in its one of the updates that from Oct 2017, It will give preference to HTTPS sites compared to the HTTP ones. Nowadays, users are also aware of being secure in the world wide web, so they also prefer HTTPS to HTTP sites. Therefore, you need to about how we can move our HTTP site to HTTPS.

The following steps will help you to perform this crucial task.

1. Set up your website for the migration.

2. Purchase an SSL certificate.

3. Configure the hosting with SSL certificate.

4. Change all the website link to HTTPS from HTTP.

5. Setup the 301 redirects from HTTP to HTTPS.

6. Keep the track of your website performance during the migration period.
Title: Re: How to redirect site from http to https?
Post by: mammasseo on 08-28-2017, 02:36:26
To redirect http URLs to https, do the following:

<VirtualHost *:80>
    ServerName www.example.com
    Redirect / https://www.example.com/
</VirtualHost>

<VirtualHost *:443>
    ServerName www.example.com
    # ... SSL configuration goes here
</VirtualHost>


This snippet should go into main server configuration file, not into .htaccess as asked in the question.

This article might have come up only after the question was asked and answered, but seems to be the current way to go.
Title: Re: How to redirect site from http to https?
Post by: mammasseo on 08-30-2017, 00:06:26
1. Get ready
2. Purchase and SSL Certificate
3. Configure hosting with SSL Certificate
4. Change all website links to HTTPS
5. Setup 301 redirects from HTTP to HTTPS or consider HSTS
6. Conclusion
Title: Re: How to redirect site from http to https?
Post by: mammasseo on 09-12-2017, 05:06:08
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
Title: Re: How to redirect site from http to https?
Post by: neelseofast on 09-15-2017, 01:12:05
Using the following code in your .htaccess file automatically redirects visitors to the HTTPS version of your site:

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

Perfect.! It will work try this.
Title: Re: How to redirect site from http to https?
Post by: impressicodigital on 05-11-2022, 03:49:55
There is another way, page rules.
Go to Page Rules.
Click “Create Page Rule”
Enter the URL (put the asterisk, so redirection happens for all the URI)
Click “Add a Setting” and select “Always Use HTTPS” from the drop-down.
Title: Re: How to redirect site from http to https?
Post by: soleseriouss on 05-13-2022, 23:23:50
Tried the above solutions?
Does any of it work for you?
Title: Re: How to redirect site from http to https?
Post by: makoo on 05-16-2022, 08:03:31
When you plan to host your site with SSL, redirect http to https is very important. Reason is that Google has started to rank non-https website as not secured. So, the page title and description will be marked as ""Not Secure"". You should not let your website fall prey to this security issue. I have created a detailed guide to redirect http to https. These days, websites are using https on a regular basis for secure connectivity. HTTPS protocol offers encryption and authentication through Transport Layer Security (TLS) or its predecessor Secure Sockets Layer (SSL). To complete the transaction, server has to authenticate itself through client and then both have to agree upon the encryption algorithm being used for transmitted data.
Title: Re: How to redirect site from http to https?
Post by: Djohnavid021 on 05-24-2022, 03:29:09
 if you do it correctly, your website will have the 'https' prefix at the beginning and a secure socket at the end. Many popular browsers will warn you if you're loading a HTTP site. If you're running an eCommerce store, you should use HTTPS to keep your customers safe.
Title: Re: How to redirect site from http to https?
Post by: mit_searchonic on 05-24-2022, 05:41:43
Hi,

Following are the step for redirecting the site from HTTP to HTTPS 

- You must log in to cPanel and go to the files manager where you can find .htaccess file

- Add the following at the end of the file

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

- Save the file and verify the redirection.

For more server redirection, go through the blog:-https://geekflare.com/http-to-https-redirection/

Connect with me to know more on SEO
Title: Re: How to redirect site from http to https?
Post by: smartscraper on 05-30-2022, 02:42:30
Seems like OP is on vacation, not responding to the answers! Do you still need a solution or its already solved?
Title: Re: How to redirect site from http to https?
Post by: priyankossisto on 05-31-2022, 04:59:24
Step 1: In IIS, check the "Require SSL" option for your web application.
Step 2: Now you must construct an HTML file with an HTTP to HTTPS redirect code.
Step 3: On IIS, create an Error page.