htaccess how to redirecting multiple domains in all variations to one domain with https

守給你的承諾、 提交于 2020-01-06 06:55:11

问题


Here is my .htaccess

RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\.vibratape\.de$ [NC]
RewriteRule ^ https://www.vibratape.de%{REQUEST_URI} [R=301,L,NE]

There are this domain...

  • vibra-tape.de
  • vibra-tape.com
  • vibratape.com
  • vibratape.de (this is the goal domain)

Every combination work except one. If you enter a none goal domain with https... exmpl.

https://www.vibratape.com

来源:https://stackoverflow.com/questions/55757719/htaccess-how-to-redirecting-multiple-domains-in-all-variations-to-one-domain-wit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!