I want to redirect any request for file from my old website to the same file but with different url on my new website :
I have tried this solution on .htaccess file:
RewriteEngine On RewriteRule ^(aaa/bbb/ccc/)(.*)$ http://newwebsite.com/bbb/ccc/$2 [R=301,L]
but when I try with this url :
it redirect to :
that is wrong, it should redirect to this :
Can someone help ?
Thanks in advance.