Seo Forum
Search Engine Optimization => SEO Basics => Topic started 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.
-
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]
-
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
-
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.
-
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.
-
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
-
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
-
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.
-
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.
-
Tried the above solutions?
Does any of it work for you?
-
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.
-
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.
-
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
-
Seems like OP is on vacation, not responding to the answers! Do you still need a solution or its already solved?
-
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.