KasariNepalBlogsRedirect HTTP TO HTTPS Forcely for SSL Certificates

Redirect HTTP TO HTTPS Forcely for SSL Certificates

I have reached here for searching How To Redirect Http to Https forcefully for SSL Certificates. In 2020 SSL certification is provided by almost all hosting providers but we may face some errors during our blogging journey. So We need to know How to Redirect Htttp to Https editing .htaccess file in Our Cpanel provide by the Hosting Company.

Step by Step Process to Forcing HTTP to HTTPS

For Processing forward you must have Cpanel access without it we cannot move ahead.
Step 1: Login To Your Cpanel.
Step 2: Go to File Manager.
Step 3: Go to Public_html.

cPanel settings
cPanel settings

Step 4: As Shown in above image click in Setting Icon.

Step 5: Select Show Hiden File.
Step 6: Click On Save.
Step 7: Now You Will Find .htaccess File in Public_html Folder.
Step 8: Right Click .htaccess file and Edit.
Step 9: Copy below code and Paste in .htaccess File.
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

update htaccess
update htaccess

Step 10: Now Save Changes.
Now Refresh Your Site. You Will See Lock Sign. As Below:

Conclusion:

If you have any queries related to how to redirect http to https for ssl certificate forcefully editing .htaccess file than you can comment below. I hope i help you to get your problem solution.

केही नयाँ गर्ने सोच

KasariNepal.com - Stay UpToDate with latest blog post related to seo, wordpress, theme, plugin, template, hosting & domain, offer and deals.

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Kasari Nepalhttps://kasarinepal.com
I am a Technical Scientist by the mind and a passionate blogger by heart. Founder of KasariNepal.com, speaker at various international forums. Life Motto: Learn - Earn - Share.

RECENT POST

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Recommended

Related Posts

Join Our Community

202FansLike
0FollowersFollow
0FollowersFollow
0SubscribersSubscribe