Re: rewrite in .htaccess

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux