redirecting url from old to new
Edho P Arief
edhoprima at gmail.com
Wed May 11 16:30:43 MSD 2011
On Wed, May 11, 2011 at 7:23 PM, tuffclassified <nginx-forum at nginx.us> wrote:
> 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 /xyz/ {
rewrite ^ /ads/$uri permanent;
...
}
More information about the nginx
mailing list