Due to duplicate content issue, I want to redirect all pages of
/articles/* to newly created sub directory
How do I redirect all pages of
Webmasters Stack Exchange is a question and answer site for pro webmasters. It only takes a minute to sign up.Sign up to join this community
Not sure how this would resolve "duplicate content issues", but anyway...
Redirect 302 /articles/ /article/
Redirect directive is prefix-matching, so the above matches
/articles/<anything> and redirects to
/article/<anything> - passing on the
This is naturally a 302 (temporary) redirect.
However, if you have other (particularly mod_rewrite) directives in your
.htaccess then you may need to change this. The order is also important.