httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miguel González <miguel_3_gonza...@yahoo.es.INVALID>
Subject Re: [users@httpd] rewrite in .htaccess
Date Thu, 02 Jun 2016 10:27:42 GMT
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-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message