redirect code for http to https

Author Topic: redirect code for http to https  (Read 4928 times)

Offline mariyaTopic starter

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 1
  • Posts: 44
  • Karma: 0
redirect code for http to https
« on: 07-19-2017, 07:24:05 »
 We used redirect code for non www version to www verison in apache server.Now i am planning to move my website http to https.i want to redirect code for http to https without affecting the seo ranking.So can any plz tell what is code i need to put in .htaccess file.


Offline brookeroberts7

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 171
  • Karma: 0
Re: redirect code for http to https
« Reply #1 on: 08-11-2020, 05:03:09 »
Redirecting HTTP to HTTPS
Redirect All Web Traffic. If you have existing code in your .htaccess, add the following: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
Redirect Only a Specific Domain. ...
Redirect Only a Specific Folder.

Offline saravanan28

  • Trade Count: (0)
  • Sr. Member
  • ****
  • Thank You 2
  • Posts: 428
  • Karma: 0
Re: redirect code for http to https
« Reply #2 on: 06-29-2021, 03:52:34 »
An HTTP request that includes a session ID cookie is subject to session hijacking attacks. It is important that if you do allow HTTP and redirect to HTTPS, that cookies are marked as secure.

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
6843 Views
Last post 05-13-2013, 23:35:33
by johncruz
0 Replies
2861 Views
Last post 04-25-2015, 23:00:10
by immediate
0 Replies
1624 Views
Last post 11-22-2016, 04:51:01
by mahisharma2
7 Replies
3126 Views
Last post 09-15-2017, 01:12:05
by neelseofast
0 Replies
869 Views
Last post 05-26-2018, 12:21:12
by ceomdali