单页的HTTP到HTTPS [关闭]

I want to apply rewrite rule which redirect payment page http to https. I want https only for payment page and if user click on home tab it should go to http not on https

example:

http://example.com/index.php

http://example.com/about.php

https://example.com/payment.php

http://example.com/home.php

<IfModule mod_rewrite.c>
  RewriteEngine On

  RewriteCond %{HTTPS} off
  RewriteCond %{REQUEST_URI} ^/payment\.php$ [NC]
  RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

  RewriteCond %{HTTPS} on
  RewriteCond %{REQUEST_URI} !^/payment\.php$ [NC]
  RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>