I need to redirect all requests that don't come from this domain ti-passis.rhcloud.com
and use https to http to avoid certificate error.
Example:
https://ti-passis.rhcloud.com/contato (should'n be redirected)
https://tetraimoveis.com/contato (should be redirected because of certificate error, once the certificate is for "*.rhcloud.com")
RewriteCond %{HTTP_HOST} !^ti-passis.rhcloud.com$ [RC]
RewriteCond %{HTTP:X-Forwarded-Proto} https
RewriteRule .* http:// %{HTTP_HOST}%{REQUEST_URI} [R,L]
The RewriteCond works alone, but if I put then together, nothing works.
Am I doing something wrong?