Re: redirect vs. rewrite
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: users@xxxxxxxxxxxxxxxx
- Subject: Re: redirect vs. rewrite
- From: Eric Covener <covener@xxxxxxxxx>
- Date: Mon, 26 Jun 2017 15:23:23 -0400
- In-reply-to: <CAPORhP6yUm_O2sLHhM7XksTJ_Vq0kKUX893jXvkRnQ01=uk71Q@mail.gmail.com>
- Reply-to: users@xxxxxxxxxxxxxxxx
On Mon, Jun 26, 2017 at 3:16 PM, David Mehler <dave.mehler@xxxxxxxxx> wrote:
> I'm using apache 2.4. What is the difference between these lines?
>
> Redirect permanent / http://www.domain.com
> RewriteRule ^/?(.*) http://www.domain.com/$1 [R,L]
Nothing really, when you add the 'R' flag you're asking mod_rewrite to
redirect instead of performing an internal rewrite of the URL or file
path.
---------------------------------------------------------------------
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]