rewrite help again please :)

Claude Bing tehbing at gmail.com
Thu May 14 18:23:55 MSD 2009


Hello!  I have a question.

I'm trying to set up Nginx to forward my old domain to my new domain.
waterfortheoppressed.com => wfto.cc.   But I not only need it to forward it,
I need the persons browser address to change to wfto.cc.  I'll provide the
working Apache example here:

   RewriteEngine On
   RewriteCond %{HTTP_HOST} ^(waterfortheoppressed.com) [NC]
   RewriteRule ^(.*)$ http://www.wfto.cc$1 [R=301,L]

   RewriteCond %{HTTP_HOST} ^(www.waterfortheoppressed.com) [NC]
   RewriteRule ^(.*)$ http://www.wfto.cc$1 [R=301,L]

Thanks for any help you may have.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090514/98ccdcde/attachment.html>


More information about the nginx mailing list