Redirect single page http to https

后端 未结 2 1739
伪装坚强ぢ
伪装坚强ぢ 2020-12-11 01:34

I\'m trying to redirect a single page from http to https using .htaccess, but I keep getting a redirect loop error.

Code:

Redirect /secureform.html h         


        
相关标签:
2条回答
  • 2020-12-11 02:16

    I have tried this and it works for me:

    Redirect permanent /secure https://www.example.com
    
    0 讨论(0)
  • 2020-12-11 02:35

    Try this :

    RewriteEngine on
    RewriteCond %{HTTPS} off
    RewriteRule ^secureform\.html$ https://www.example.com/secureform.html [L,R=301]
    
    0 讨论(0)
提交回复
热议问题