How t Redirect my URL HTTP to HTTPS Automatically

ForumCategory: WordPressHow t Redirect my URL HTTP to HTTPS Automatically
Saad Shafique asked 4 years 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 4 years 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.

Zain Hosting answered 4 years 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} ^ [NC]

RewriteRule ^(.*)$$1 [L,R=301]

replace with your own url / domain.

rohail ch answered 4 years 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