2009/3/18 Igor Sysoev <is@rambler-co.ru>:
> However, it's better to runs these rewrites under
>
> location /sites/foo/ {
> rewrite ^/sites/foo/index.php$ http://foo.com/ permanent;
> return 404;
> }
>
> location /sites/coolsw {
> rewrite ^/sites/coolsw(|/)$ http://foo.com/ permanent;
> }
ahh, duh. this works perfect. i had another rewrite i had missed that
was messing things up:
location /sites/foo {
rewrite ^/sites/foo/index.php$ http://foo.com/permanent;
rewrite ^/sites/foo(|/)$ http://foo.com/permanent;
return 404;
}
Thanks!