On 05/24/16 6:26 PM, Miguel González wrote:
> On 05/24/16 1:51 PM, Yehuda Katz wrote:
>> Because the rewrite rule above it says it uses the last rule to run if
>> it matches (that is what [L] means). Put your new config above the
>> WordPress rule.

I can´t make it to work with HTTPS, I get a warning first as there is
not SSL certificate in olddomain.com.

RewriteCond %{SERVER_PORT} ^443
RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.olddomain.com$
RewriteRule ^(.*)$ https://www.newdomain.com/$1 [R=301,L]


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

Do I need to get a SSL certificate for oldomain.com?

Miguel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to