Rewrite works, but want to redirect

Almir Karic almir at kiberpipa.org
Wed Sep 17 22:05:53 MSD 2008


quoting the wiki http://wiki.codemongers.com/NginxHttpRewriteModule :

Flags can be any of the following: 
...
permanent - returns permanent redirect with code 301



On Wed, Sep 17, 2008 at 05:53:31PM +0000, David wrote:
> Hi,
> 
> My rewrite works, but I want this to be a permanent redirect. How can I achieve
> this please ?
> 
> Thank you
> 
> rewrite ^/forums/archive/index.php/t-([0-9]+)\.html$ /forums/showthread.php?t=$1
> last;
> 
> 
> 

-- 
vi vi vi -- the number fo the beast





More information about the nginx mailing list