Redirecting url from old to new

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]

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,197247,197247#msg-197247

On Wed, May 11, 2011 at 7:23 PM, tuffclassified [email protected]
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;

}

2011/5/11 tuffclassified [email protected]:

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;
}

thanks later one seems to work

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,197247,197578#msg-197578

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs