Pergunta

Eu tenho o seguinte:

RewriteEngine On

# Check if the host name contains a . (localhost won't)
# Check if the host name starts with www
# Check if the host name ends with .com
# Check if the connection is secure
RewriteCond %{HTTP_HOST}  \.
RewriteCond %{HTTP_HOST} !^www   [OR]
RwriteCond  %{HTTP_HOST} !\.com$ [OR]
RewriteCond %{HTTPS}     !=on
RewriteRule ^.*$ https://www.myDomain.com/$0 [R=301,L]

Eu quero EXCLUIR essas verificações para svn.mydomain.com (i.é.então, svn.mydomain.com NÃO redirecionar A TODOS.Como faço isso?

Foi útil?

Solução

Uma maneira fácil seria para adicionar

RewriteCond %{HTTP_HOST} !svn.mydomain.com

antes de sua condições existentes.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top