Note the first one (the redirect) will probably redirect incorrectly,
target should end with a trailing slash.

Golden rule: if souce ends in trailing slash, target must also end in
trailing slash.

2017-06-26 21:23 GMT+02:00 Eric Covener <[email protected]>:
> On Mon, Jun 26, 2017 at 3:16 PM, David Mehler <[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
>



-- 
Daniel Ferradal
IT Specialist

email         dferradal at gmail.com
linkedin     es.linkedin.com/in/danielferradal

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to