Support » Fixing WordPress » How to 301 redirection for directory?

  • tripz0r

    (@tripz0r)


    Hello, i have WP site on classipress theme, and 95% of my post are made in ads section. And URL look like mysite.com/ads/post-name/ now i am moving on other theme, some magazine theme and there is no more ads. But because of SEO i want to make 301 redirection from that url witl /ads/ to new URL:
    mysite.com/ads/post-name/ i want to 301 to mysite.com/post-name/ so how to do that?
    Is there any plugin for that 301 redirect for whole dir or i will need to do it manual for all posts? I have about 1000+ post with that /ads/

    many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You’d want to do something like this.

    RewriteRule ^/ads/(.*)$ http://newlocation.com [R=301,L]

    Something along those lines should work.

    tripz0r

    (@tripz0r)

    You think it will work?

    I am thinking that can work if i am doing redirection from mysite.com/ads/post-name/ to mysite.com/subpage/post-name/

    but in my case i am actually removing /ads/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to 301 redirection for directory?’ is closed to new replies.