There Is SSL On My Site But SSL Is Not Appearing Solution! Http to Https Redirect Pro...

HomepageArticlesThere Is SSL On My Site But SSL Is Not Appeari...

If SSL is not visible even though SSL is given to the site from Hosting, it is necessary to add a redirect code in the htaccess file!

Example: If you click on site.com and enter the site, it will automatically open with http and http means ssl-free login!

But if you enter as https://site.com, ssl will appear on your site!

Only http://site.com logins do not show ssl active!

The solution to this is described below!

Http to Https Dialing Code;

Find the .htaccess file in your hosting!

This file is located in hidden files in the public_html folder in your hosting's file manager!

To open hidden files, navigate to the public_html folder in the file manager and click on settings from the top right!

Click on the "Show Hidden Files (dotfiles) Option" from the preferences screen!

After doing this, the .htaccess file will appear directly in the public_html folder of your hosting!

NOTE: If the .htaccess file is not visible despite the operations you have done, press the +File option from the top left while in the public_html folder!

From the new file screen that appears, write .htaccess where it says New File Name: and say Create New File!

When you do this, you open the .htaccess file manually!

Final Step: Now that you have found the .htaccess file, you can right click it and choose edit!

From the edit screen that appears, you will come to the screen where you can say edit and enter the codes!

There may be some codes here or a blank screen! If there are codes inside, without breaking them,

You can come to the bottom and enter the codes below!

# HTTP'yi HTTPS'ye Yönlendirme Kodu - from genchost.com
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Son: HTTP'yi HTTPS'ye Yönlendirme Kodu - from genchost.com

After entering these relevant codes, that is, after pasting the above codes at the bottom,

At the top right, you can say  Save Changes!

After doing these operations, now your site address; Even if you enter as site.com or http://site.com, it will automatically appear as https://site.com with active ssl!

Powered by WISECP