Htaccess and 301 redirects (solved)

Hi guys,

I changed my blog articles
from www.mydomain.com/articles/article/name-of-the-article/
to www.mydomain.com/article/name-of-the-article/

Because I have some campaigns with the old url, I want to create a htaccess rule to redirect to the new url. I could do it article by article, but there are many articles. I would prefer a rule to get it done, if there was one.

Could anybody help me with this issue?

I answer myself:

<IfModule mod_rewrite.c> 
RewriteEngine On 
Redirect 301 /articles/article/ /article/

</IfModule>

I found this site to generate htaccess redirects:

2 Likes