0

I'd like to redirect users to http urls if they came to my website with http:// and i'd like to redirect them to https urls if they came to my website with https://

is there a way to provide urls for example:

 ://foo.com/bar

or any other method to create a link on the page based on the same http method that the user got in ?

i prefer a solution that is based on pure html without javascript

update

thanks for the quick responses.

unfortunately i forgot to mention that I redirect to a different subdomain so i cannot omit the domain name

thanks!

Kfir

Community
  • 1
  • 1
ufk
  • 30,912
  • 70
  • 235
  • 386

0 Answers0