redirecting url from old to new

Mikhail Mazursky ash2kk at gmail.com
Thu May 12 15:34:09 MSD 2011


2011/5/11 tuffclassified <nginx-forum at nginx.us>:
> Any body will help me to redirect my old  wordpress post
> http://tuffclassified.com/xyz/ to new custom post
> http://tuffclassified.com/ads/xyz/  . It was easy in apache as i have to
> add just
>
> # END WordPress
> RewriteRule ^/(.*)$ http://tuffclassified.com/ads/$1 [R=301,L]

location / {
     rewrite ^ /ads$uri permanent;
}



More information about the nginx mailing list