How I redirect From http ->>> Https

I'm trying to redirect HTTP to HTTPS but it's not working.

Actually recently I updated my website Lyricsfed with SSL certificate in that everything is done. I have added redirect code in my .htaccess file.

RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] But the only Homepage working perfectly. It’s automatically redirecting http://www.lyricsfed.com to https://www.lyricsfed.com

But all others page/post did not get redirecting. I am using your plugin, please give me a solution for all page redirecting.

I want to redirect my all post automatically.

Example: http://www.example.com/post/ to https://www.example.com/post/

Pleases short out my problem.

Posted on Dec 28, 2018 3:30 AM

Reply
1 reply

Dec 28, 2018 4:17 AM in response to preet241

The requirements may vary between hosting services, depending on the software running their server. I'm using Godaddy, and recently changed from http to https: this is the .htaccess code I use (amended for your domain):


RewriteEngine On 
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?lyricsfed\.com
RewriteRule ^(.*)$ https://www.lyricsfed.com/$1[R,L]


You can see it in action here:


http://rfwilmut.net/notes/noise/page1.html


Of course I can't promise that it will work on your server.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How I redirect From http ->>> Https

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.