I would like that .htaccess recognize string in my url and replace it with another. Previously I used SEO components, but today I want to use Joomla native seo, and I have different structure of my url addresses.
I would like to get folder1 replaced with folder3 automatically when browser try to access it.
Example: www.domain.com/folder1/folder2/folder4/article-title-1 to www.domain.com/folder3/folder2/folder4/article-title-1
Any of the folder* doesn't exist on my server and links are generated by Joomla menu structures with SEO configuration ON.
I've tried to use code below but without success.
RewriteRule ^/?folder1([a-z/.]*)$ /folder3$1 [R=301,L]