Hello, thank you guys and thanks a bunch for the explanation! I'll stick to what Maxim suggested, because it will definitively save me from headaches. But it's good to have the explanation and so to understand what the problem was as the syntax looks like fundamental knowledge to me. Wow, even the creator himself spent some of his very spare time in writing a reply. :D Thanks again!by strike - Nginx Mailing List - English
Thanks for your reply! But http://www.my_domain.com/forumfoobar/ still redirects to http://forum.my_domain.com/. I don't want that. :-( Sven 'Darkman' Michels Wrote: ------------------------------------------------------- > Hi, > > i'd write the end more like (/?|$), this would > match if there > is a /, or if there is the end - i think. > > Regards, > Sven &by strike - Nginx Mailing List - English
Hi, would anybody please tell me what I'm doing wrong here? location ~* ^/(forum|forums|board)/? { rewrite ^/([^/]*)/*(.*) http://forum.my_domain.com/$2 permanent; } I'd like to make it redirect visitors from http://www.my_domain.com/forum (note: there's no trailing slash), http://www.my_domain.com/forum/, http://www.my_domain.com/forums (again, there's no trailing slash here)by strike - Nginx Mailing List - English