Use RedirectMatch with a negative lookahead instead to prevent loops.
On Wed, 22 Jun 2022 at 05:16, Deepak Goel wrote:
> Hello
>
> How do I create a redirect in 443 port in the apache web server 2?
>
> I want to redirect the url :
>
> https://mydomain.com/
>
> to
>
> https://mydomain.com/foo/
>
Hello
How do I create a redirect in 443 port in the apache web server 2?
I want to redirect the url :
https://mydomain.com/
to
https://mydomain.com/foo/
Please advise.
Thanks.
P.S:
If I add a redirect statement to the file 000-default-le-ssl.conf - port
443 (Redirect / https://mydomain.com