Hello friends,
I Have face A problem In My Website,Please tell me, How to redirect site from http to https?
Hello friends,
I Have face A problem In My Website,Please tell me, How to redirect site from http to https?
You can use 301 redirect. 301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently".
Cheap VPS Hosting | VPS Starting from $12 PER Year
Cheap Dedicated Server | Unmetered Bandwidth | Free Setup and IPMI
There are many ways you can redirect your website from http to https.
1. Using .htaccess
Open your .htaccess file and add this code.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
After successfully, You will redirect your website from HTTP to HTTPS.
Bookmarks