How t Redirect my URL HTTP to HTTPS Automatically

ForumCategory: WordpressHow t Redirect my URL HTTP to HTTPS Automatically
Saad Shafique asked 5 months ago

I have installed wordpress on my site and I see when I open it with HTTPS it works fine, but when I open it with HTTP protocol it does not redirect automatcially.

How I can redirect all HTTP visitors to mu HTTPS version with?

3 Answers
Mian Ayaz answered 5 months ago

Hello, You are using wordpress so its very easy and simple to redirect your unsecured http urls to secured https urls.

just install Really Simple SSL

after installing this plugin just activate this plugin and activate it.

you can also visit this tutorial for SSL redirection.

https://www.zainhosting.com/how-to-redirect-http-to-https-in-wordpress/

Zain Hosting answered 5 months ago

Hello Saad, you can do the same thing without installing a plugin in your site.

just go to your Cpanel’s file manager and locate a hidden file .htaccess, if it is not in your file manager then you can create it.

after that just put the code in the .htaccess file and save it.

RewriteEngine on

RewriteCond %{HTTP_HOST} ^zainhosting.com [NC]

RewriteRule ^(.*)$ https://zainhosting.com/$1 [L,R=301]

replace zainhosting.com with your own url / domain.

rohail ch answered 4 months ago

If you are looking for a web designing or development company which will grow your business or you want high light your any type business then visit Technifirm.

Technifirm provide Pakistan’s best IT services company.

Your Answer

Accepted file types: txt, jpg, pdf

Add another file