Can i use apache mod rewrite to redirect to for example www.google.com if the http_host is empty and if not empty to https

前端 未结 0 1442
感情败类
感情败类 2020-12-17 21:48

I have the following rewrite rules in a virtual server.

RewriteCond %{HTTP_HOST} ^$ RewriteRule ^(.*)$ https://www.google.com/ [L,R=301]

RewriteCond %{         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题