301 redirection for WP directory?

Discussion in 'White Hat SEO' started by wizzardz01, May 13, 2012.

  1. wizzardz01

    wizzardz01 Power Member

    Joined:
    Jan 7, 2010
    Messages:
    580
    Likes Received:
    338
    Occupation:
    Affiliate marketing
    Hey, i making new redesign of my webiste, and that site was in some theme in WP for ads...Now i want to move all that ads like post. I made it all, but now need to make 301 redirection for links because they are different. It was like this mysite.com/ads/name-of-post/ but i need to redirect that /ads/ folder to mysite.com/name-of-post/
    so if there is some WP plugin for that?
    or how to do it via .htaccess file?
    I know it need to be something like this:

    Code:
    RewriteEngine on
    RewriteCond %{THE_REQUEST} ^.*\/index\.html?\ HTTP/
    RewriteRule ^(.*)index\.html?$ "/$1" [R=301,L]
    Options +FollowSymlinks 
    RewriteBase /
    but i don't know how to edit it in my case, to this index.html put like /ads/ or something

    any help will be great! Thanks a lot!
     
  2. milian

    milian Power Member

    Joined:
    Jan 9, 2010
    Messages:
    515
    Likes Received:
    69
    Occupation:
    SEO stuff
    Location:
    Around