How to redirect all HTTP requests to HTTPS? #272
-
Hi, I don't know how to write the My code like this:
but yellow is not all links redirect http URLs to https, For example:
I do not know why?thx! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi, try the following
As an alternative, I would recommend to redirect in your virtual hosts configuration:
Both alternatives work on my Apache 2.4 server. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much. |
Beta Was this translation helpful? Give feedback.
-
Thank you, feel free to ask more questions. Feedback is always welcome. |
Beta Was this translation helpful? Give feedback.
Hi, try the following
.htaccess
configuration:As an alternative, I would recommend to redirect in your virtual hosts configuration:
Both alternatives work on my Apache 2.4 server. Hope this helps.