putting stupid search engine urls back

AMP Admin admin at ampprod.com
Sun Aug 30 20:39:05 MSD 2009


Oh great idea... thank you!

-----Original Message-----
From: owner-nginx at sysoev.ru [mailto:owner-nginx at sysoev.ru] On Behalf Of Jim
Ohlstein
Sent: Sunday, August 30, 2009 10:58 AM
To: nginx at sysoev.ru
Subject: Re: putting stupid search engine urls back

AMP Admin wrote:
> I ended up getting it to work with just the following line.  No location
or
> anything.
>
> rewrite ^.*-t([0-9]+).html$ /showthread.php?t=$1 last;
>   

You might want to make that "last" into a "permanent".

That way a 301 is returned and you retain search engine ranking for the 
page.

> thanks everyone for your help!
>
>
>   







More information about the nginx mailing list