Re: redirect port from 80 to 443
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: users@xxxxxxxxxxxxxxxx
- Subject: Re: redirect port from 80 to 443
- From: James Moe <jimoe@xxxxxxxxxxxxxx>
- Date: Sat, 18 Feb 2017 11:04:34 -0700
- Dmarc: none
- In-reply-to: <CAOGexv9G_U+V=mX7E9MW0FF32iu8EFeN51XAaz2WYzqBJG0Zgg@mail.gmail.com>
- Reply-to: users@xxxxxxxxxxxxxxxx
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
On 02/18/2017 05:08 AM, Rodrigo Cunha wrote:
> i want redirect all request from port 80 to 443.
> what is better setting for fix this?
>
Better than what?
Fix? Is it broken?
RewriteCond %{HTTP_HOST} =www.example.com
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.*)$ https://www.example.com/$1 [R]
--
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
Think.
Attachment:
signature.asc
Description: OpenPGP digital signature
[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]