regex - Redirect part of URL -


i'm trying redirect:

https://www.portal-gestao.com/item/7736-3-ideias-para-afinar-a-sua-m%c3%a1quina-de-vender-na-internet.html 

to:

https://www.portal-gestao.com/artigos/7736-3-ideias-para-afinar-a-sua-m%c3%a1quina-de-vender-na-internet.html 

that is: replacing item part of url.

my code in .htaccess is:

rewriteengine on rewriterule ^.+/item/(.+)$ /artigos/$1 [r=301,l] 

note: joomla 3 site.

since item start of url should using rule:

rewriteengine on  rewriterule ^item/(.+)$ /artigos/$1 [r=301,l,nc,ne] 

make sure keep rule @ start of .htaccess below rewriteengine on line.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -