Thank you very much, will try to get this working now.<br><br><div class="gmail_quote">2009/5/14 Denis F. Latypoff <span dir="ltr"><<a href="mailto:denis@gostats.ru">denis@gostats.ru</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Igor,<br>
<div><div></div><div class="h5"><br>
Thursday, May 14, 2009, 9:56:19 PM, you wrote:<br>
<br>
> On Thu, May 14, 2009 at 09:38:49PM +0700, Denis F. Latypoff wrote:<br>
<br>
>> Hello Claude,<br>
>><br>
>> Thursday, May 14, 2009, 9:23:55 PM, you wrote:<br>
>><br>
>> > Hello! I have a question.<br>
>><br>
>> > I'm trying to set up Nginx to forward my old domain to my new domain.<br>
>> > <a href="http://waterfortheoppressed.com" target="_blank">waterfortheoppressed.com</a> => wfto.cc. But I not only need it to forward it,<br>
>> > I need the persons browser address to change to wfto.cc. I'll provide the<br>
>> > working Apache example here:<br>
>><br>
>> > RewriteEngine On<br>
>> > RewriteCond %{HTTP_HOST} ^(<a href="http://waterfortheoppressed.com" target="_blank">waterfortheoppressed.com</a>) [NC]<br>
>> > RewriteRule ^(.*)$ <a href="http://www.wfto.cc" target="_blank">http://www.wfto.cc</a>$1 [R=301,L]<br>
>><br>
>> > RewriteCond %{HTTP_HOST} ^(<a href="http://www.waterfortheoppressed.com" target="_blank">www.waterfortheoppressed.com</a>) [NC]<br>
>> > RewriteRule ^(.*)$ <a href="http://www.wfto.cc" target="_blank">http://www.wfto.cc</a>$1 [R=301,L]<br>
>><br>
>> > Thanks for any help you may have.<br>
>><br>
>> server {<br>
>> listen 80;<br>
>> server_name <a href="http://www.waterfortheoppressed.com" target="_blank">www.waterfortheoppressed.com</a><br>
>> <a href="http://waterfortheoppressed.com" target="_blank">waterfortheoppressed.com</a>;<br>
>> # staff<br>
>> }<br>
>><br>
>> server {<br>
>> listen 80;<br>
>> server_name _;<br>
>><br>
>> location / {<br>
>> rewrite ^ <a href="http://www.wfto.cc" target="_blank">http://www.wfto.cc</a>$request_uri? permanent;<br>
>> }<br>
>> }<br>
<br>
> Vice versa:<br>
<br>
> server {<br>
> listen 80;<br>
> server_name <a href="http://www.waterfortheoppressed.com" target="_blank">www.waterfortheoppressed.com</a><br>
> <a href="http://waterfortheoppressed.com" target="_blank">waterfortheoppressed.com</a>;<br>
<br>
> rewrite ^ <a href="http://www.wfto.cc" target="_blank">http://www.wfto.cc</a>$request_uri? permanent;<br>
> }<br>
><br>
> server {<br>
> listen 80;<br>
> server_name <a href="http://www.wfto.cc" target="_blank">www.wfto.cc</a>;<br>
<br>
> # staff<br>
> }<br>
<br>
</div></div>That was additional homework for Claude :)<br>
<div><div></div><div class="h5"><br>
--<br>
Best regards,<br>
Denis mailto:<a href="mailto:denis@gostats.ru">denis@gostats.ru</a><br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br><a href="http://www.brainyquote.com/quotes/authors/v/vince_lombardi.html" target="_blank">Vince Lombardi</a> - "We didn't lose the game; we just ran out of time."