Welcome! Log In Create A New Profile

Advanced

Re: Quick question

mike
March 18, 2009 04:05PM
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!
Subject Author Posted

Quick question

mike March 18, 2009 03:34PM

Re: Quick question

Igor Sysoev March 18, 2009 03:35PM

Re: Quick question

mike March 18, 2009 03:53PM

Re: Quick question

Igor Sysoev March 18, 2009 03:55PM

Re: Quick question

mike March 18, 2009 04:05PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 116
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready