Re: Rewrite rules not working

2022-11-11 Thread Francis Daly
On Fri, Nov 11, 2022 at 08:29:44AM -0500, blason wrote: Hi there, > By the way which one would you confirm is preferable method rewrite or > return? It depends, based on what you want to do. For what I think you want, in this case, "return" is simpler. f -- Francis Dalyfran...

Re: Rewrite rules not working

2022-11-11 Thread blason
Thanks appreciate it. Will have to check and confirm. By the way which one would you confirm is preferable method rewrite or return? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,295715,295725#msg-295725 ___ nginx mailing list -- nginx@ngi

Re: Rewrite rules not working

2022-11-11 Thread Francis Daly
On Thu, Nov 10, 2022 at 01:07:23PM -0500, blason wrote: Hi there, > I have a website http://web1.example.local/web1 > Instead I need a rewrite so that if user enters http://web1.example.local it > will be diverted to http://web1.example.local/web1 If you want it to happen, without needing it to

Re: Rewrite rules not working

2016-09-11 Thread Francis Daly
On Sun, Sep 11, 2016 at 08:12:00AM -0400, khav wrote: Hi there, > I am trying to make pretty urls using rewrite rules but they are not > working "Pretty urls" usually means that the browser *only* sees the original url, and the internal mangling remains hidden. A rewrite that leads to a HTTP r