another redirect

Eire Angel chrisangileri at yahoo.com
Sun Mar 9 18:30:05 MSK 2008


they way it made sense to me,  is using

if ($host = 'www.oldsite.com/tips.ws' ) {
   rewrite  ^/(.*)$  http://www.newsite.com/tips_and_receipes  permanent;
}

but does nothing 

i also tries using the if sequence for request_filename.ws
with no luck as well
am i missing something.  like 6th grade .. :)
Corey Donohoe <atmos at atmos.org> wrote: On 3/8/08, Eire Angel  wrote:
> i have exhausted my resources on this one.  please help
> if your able.
>
> i am moving to a new site.  the old site has some
> good standing in google which points to
> oldsite.com/tips.ws
> now, the new site which is in rails
> loads this page at newsite.com/tips_recipes
>
> is there anyway to have nginx
> redirect this and also change its path on the way ?
>

The rewrite module does an ok job.

http://wiki.codemongers.com/NginxHttpRewriteModule

-- 
Corey Donohoe
http://www.atmos.org/
http://www.engineyard.com/


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080309/55f32645/attachment.html>


More information about the nginx mailing list