mardi 30 octobre 2018

How do I route the HTTP requests to HTTPS when the request method is not POST

I want to route all the HTTP requests on my Alibaba cloud instance to HTTPS requests when the request method is not POST.

Here is my current configuration:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https:// %{SERVER_NAME}/$1 [R,L]

How can I change this configuration so that it only redirects when the request is not a POST?




Aucun commentaire:

Enregistrer un commentaire