3 messages in ru.sysoev.nginxRe: Add slash to the end of every url...
FromSent OnAttachments
Steffen LindnerMar 14, 2009 11:06 am 
Igor SysoevMar 14, 2009 1:40 pm 
mangooMar 14, 2009 9:09 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Add slash to the end of every url (rewrite rule)Actions...
From:Igor Sysoev (is@rambler-co.ru)
Date:Mar 14, 2009 1:40:19 pm
List:ru.sysoev.nginx

On Sat, Mar 14, 2009 at 07:06:28PM +0100, Steffen Lindner wrote:

Hi list,

i am a little bit lost in rewirt rules / regex.

I try to get an "/" to every urls end.

For better understanding check this:

http://3much.schnickschnack.info/art/projekte

If u press on a small thumbnail under the big picture it reloads and shows this url:

http://3much.schnickschnack.info/art/projekte/#0

If i now have a slash on all urls (on the end) it would work without a reload of the site.

I use ngnix 0.7.30. The CMS is plone.

Hope someone can help.

location ~ [^/]$ { rewrite ^ http://site.com$uri/; }