putting stupid search engine urls back
gabe at vtunnel.com
Sun Aug 30 23:37:59 MSD 2009
Glad it worked out.
One last thing of note is that "." equals "any single character",
whereas in your example i think you want it to match a literal period,
which is done via \. In the example above this shouldn't cause any
problems that I can forsee, as a period is a single character that is
matched by ".", but I thought you might want to be aware of this.
On Sun, Aug 30, 2009 at 9:39 AM, AMP Admin<admin at ampprod.com> wrote:
> Oh great idea... thank you!
> -----Original Message-----
> From: owner-nginx at sysoev.ru [mailto:owner-nginx at sysoev.ru] On Behalf Of Jim
> 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
>> 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
>> thanks everyone for your help!
More information about the nginx