RewriteRule violates while switching from https to http

后端 未结 4 2014
不思量自难忘°
不思量自难忘° 2021-01-29 04:40

I write a lot of RewriteRule in my .htaccess file , but problem occurs when I switch from https to http pages; it

4条回答
  •  清歌不尽
    2021-01-29 05:20

    I think this might be of your help

    .htaccess redirect https to http not working

    and for last question this might be of your help

    http://httpd.apache.org/docs/current/rewrite/flags.html and

    http://www.addedbytes.com/download/mod_rewrite-cheat-sheet-v2/png/

    EDIT: You can try using

    RewriteCond %{SERVER_PORT} ^443$
    RewriteCond %{SERVER_PORT} !^443$
    

    instead of

    RewriteCond %{HTTPS} on [NC]
    RewriteCond %{HTTPS} off [NC] 
    

    For detail

    Please see this link, someone had similar problem. Please see second reply of the post

    http://www.webmasterworld.com/apache/3228459.htm

提交回复
热议问题