Re: redirect url in nginx

2013-11-28 Thread Marcin Kasiński
Witam, Sorry, but solutions that you send to me isn't working. Any more idea's? Marcin Kasiński mobile: (+48) 512 - 370 - 209 skype: marcin-kasinski GG: 1258720 JabberID: marcin-kasin...@aqq.eu mail: mkasinski.poc...@gmail.com mail: marcin-kasin...@wp.pl website: http://markasblog.pl -Origin

Re: redirect url in nginx

2013-11-27 Thread António P . P . Almeida
It's location /poczatek { Le 27 nov. 2013 20:47, "António P. P. Almeida" a écrit : > location poczatek { > return 301 $scheme://$host/index.PHP?cat=$uri; > } > Le 27 nov. 2013 20:19, "Marcin Kasiński" a > écrit : > >> Hello, >&g

Re: redirect url in nginx

2013-11-27 Thread António P . P . Almeida
location poczatek { return 301 $scheme://$host/index.PHP?cat=$uri; } Le 27 nov. 2013 20:19, "Marcin Kasiński" a écrit : > Hello, > > > > I have a problem with redirect url in nginx. > > > > I want to redirect http://almelle.atmserv.pl/poczatek na >

Re: redirect url in nginx

2013-11-27 Thread Steve Holdoway
rewrite /poczatek(.*) $scheme://$host$uri/index.php?cat=poczatek permanent; *should* work. I've not used rewriites with gets though... Steve On Wed, 2013-11-27 at 20:18 +0100, Marcin Kasiński wrote: > Hello, > > > > I have a problem with redirect url in nginx. > >

redirect url in nginx

2013-11-27 Thread Marcin Kasiński
Hello, I have a problem with redirect url in nginx. I want to redirect http://almelle.atmserv.pl/poczatek na http://almelle.atmserv.pl/index.php?cat=poczatek In vhost conf file I have: server { listen 80; ## listen for ipv4; this line is default and implied