Firefox says: REDIRECT LOOP Firefox has detected that the server is redirecting the request for this address in a way that will never complete.<br><br>lol.<br><br>It's only when I use <a href="http://www.wfto.cc">www.wfto.cc</a>, and not wfto.cc.<br>
<br>Figured it out while writing this e-mail. Make sure that when you use those rewrite rules that you actually have a server named <a href="http://www.whatever.com">www.whatever.com</a>, or it will end up in a redirect loop.<br>
<br>Thanks again,<br><br>Claude<br><br><div class="gmail_quote">On Thu, May 14, 2009 at 6:12 PM, Claude Bing <span dir="ltr"><<a href="mailto:tehbing@gmail.com">tehbing@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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" target="_blank">denis@gostats.ru</a>></span><div>
<div></div><div class="h5"><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><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><br>
--<br>
Best regards,<br>
Denis mailto:<a href="mailto:denis@gostats.ru" target="_blank">denis@gostats.ru</a><br>
<br>
<br>
</div></div></blockquote></div></div></div><font color="#888888"><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."
</font></blockquote></div><br><br clear="all"><br>-- <br><br><a href="http://www.brainyquote.com/quotes/authors/d/don_marquis.html" target="_blank">Don Marquis</a> - "Procrastination is the art of keeping up with yesterday."