RE: Rewrite does not work

2019-02-28 Thread Reinis Rozitis
> > I've added the following rewrite line in the Config website: > > rewrite ^tagged\/(.*)$ /?p=blog&blog_tag_name=$1 break; > > It is supposedly called by the following URL: /tagged/Server be redirected to > the > following internally: /blog?blog_name=&blog_tag_name=Server If the rewrite dir

Rewrite does not work

2019-02-28 Thread necromonger
Hello forum members, I have the following problem and I hope someone can help me. I've added the following rewrite line in the Config website: rewrite ^tagged\/(.*)$ /?p=blog&blog_tag_name=$1 break; It is supposedly called by the following URL: /tagged/Server be redirected to the following int

Re: nginx rewrite does not work without "permanent" directive

2017-12-15 Thread Francis Daly
On Fri, Dec 15, 2017 at 05:32:25PM +0300, Александр Трофимчук wrote: Hi there, > Nevertheless I wonder why the following (almost similar) config works? I don't see it as similar. Am I missing something? > I get php output when requesting for > http://site.com//files/imagecache/small/1.jpg > Tho

Re: nginx rewrite does not work without "permanent" directive

2017-12-15 Thread Александр Трофимчук
Thank you for advice! I will add the "redirect". Nevertheless I wonder why the following (almost similar) config works? I get php output when requesting for http://site.com//files/imagecache/small/1.jpg Though rewrite goes to another location with some additional parameters the configurations look

Re: nginx rewrite does not work without "permanent" directive

2017-12-15 Thread Francis Daly
On Fri, Dec 15, 2017 at 03:48:20PM +0300, Alexander Trofimchouk wrote: Hi there, > My nginx rewrite works only if I add "permanent" directive. Without it there > is no rewrite seen even in browser's network log. http://nginx.org/r/rewrite "rewrite" does not directly lead to "http redirect" with

nginx rewrite does not work without "permanent" directive

2017-12-15 Thread Alexander Trofimchouk
Hello! Please would you mind helping me. My nginx rewrite works only if I add "permanent" directive. Without it there is no rewrite seen even in browser's network log. I have an image cache system which works this way: - there is a folder for uploaded images ( ) - folder for small thumbnails o