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
Post a Comment