Welcome! Log In Create A New Profile

Advanced

Re: Re[2]: rewrite help again please :)

Claude Bing
May 14, 2009 12:39PM
Firefox says: REDIRECT LOOP Firefox has detected that the server is
redirecting the request for this address in a way that will never complete.

lol.

It's only when I use www.wfto.cc, and not wfto.cc.

Figured it out while writing this e-mail. Make sure that when you use those
rewrite rules that you actually have a server named www.whatever.com, or it
will end up in a redirect loop.

Thanks again,

Claude

On Thu, May 14, 2009 at 6:12 PM, Claude Bing wrote:

> Thank you very much, will try to get this working now.
>
> 2009/5/14 Denis F. Latypoff
>
> Hello Igor,
>>
>> Thursday, May 14, 2009, 9:56:19 PM, you wrote:
>>
>> > On Thu, May 14, 2009 at 09:38:49PM +0700, Denis F. Latypoff wrote:
>>
>> >> Hello Claude,
>> >>
>> >> Thursday, May 14, 2009, 9:23:55 PM, you wrote:
>> >>
>> >> > 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.
>> >>
>> >> server {
>> >> listen 80;
>> >> server_name www.waterfortheoppressed.com
>> >> waterfortheoppressed.com;
>> >> # staff
>> >> }
>> >>
>> >> server {
>> >> listen 80;
>> >> server_name _;
>> >>
>> >> location / {
>> >> rewrite ^ http://www.wfto.cc$request_uri? permanent;
>> >> }
>> >> }
>>
>> > Vice versa:
>>
>> > server {
>> > listen 80;
>> > server_name www.waterfortheoppressed.com
>> > waterfortheoppressed.com;
>>
>> > rewrite ^ http://www.wfto.cc$request_uri? permanent;
>> > }
>> >
>> > server {
>> > listen 80;
>> > server_name www.wfto.cc;
>>
>> > # staff
>> > }
>>
>> That was additional homework for Claude :)
>>
>> --
>> Best regards,
>> Denis mailto:denis@gostats.ru
>>
>>
>>
>
>
> --
>
> Vince Lombardi - "We didn't lose the game; we just ran out of time."




--

Don Marquis
- "Procrastination is the art of keeping up with yesterday."
Subject Author Posted

rewrite help again please :)

AMP Admin May 14, 2009 12:13AM

rewrite help again please :)

AMP Admin May 14, 2009 12:18AM

Re: rewrite help again please :)

Igor Sysoev May 14, 2009 01:13AM

Re: rewrite help again please :)

Claude Bing May 14, 2009 10:23AM

Re[2]: rewrite help again please :)

Denis F. Latypoff May 14, 2009 10:38AM

Re: rewrite help again please :)

Igor Sysoev May 14, 2009 10:56AM

Re[2]: rewrite help again please :)

Denis F. Latypoff May 14, 2009 11:37AM

Re: Re[2]: rewrite help again please :)

Claude Bing May 14, 2009 12:12PM

Re: Re[2]: rewrite help again please :)

Claude Bing May 14, 2009 12:39PM

Re: rewrite help again please :)

Igor Sysoev May 14, 2009 01:09AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 315
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready