redirect code for http to https

Author Topic: redirect code for http to https  (Read 5346 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.

Offline Mala123

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 26
  • Karma: 0
  • Gender: Female
  • F1 Removal is a well known movers and packers
    • London Renovations
Re: redirect code for http to https
« Reply #3 on: 10-01-2022, 07:14:14 »
A HTTP demand that incorporates a meeting ID treat is dependent upon meeting capturing assaults. It is critical that on the off chance that you in all actuality do permit HTTP and divert to HTTPS, that treats are set apart as secure.

Offline f1dark

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 154
  • Karma: 0
  • Gender: Female
  • F1 Removals is the top removals company in the UK,
    • F1removals.co.uk
Re: redirect code for http to https
« Reply #4 on: 10-05-2022, 06:07:21 »
An HTTP request that includes a session ID cookie is subject to session hijacking attacks.


 

Related Topics

  Subject / Started by Replies Last post
7 Replies
7082 Views
Last post 05-13-2013, 23:35:33
by johncruz
0 Replies
2972 Views
Last post 04-25-2015, 23:00:10
by immediate
0 Replies
1733 Views
Last post 11-22-2016, 04:51:01
by mahisharma2
14 Replies
6034 Views
Last post 05-31-2022, 04:59:24
by priyankossisto
0 Replies
946 Views
Last post 05-26-2018, 12:21:12
by ceomdali