I have three websites. Each is a folder and accessible like:
example.com/siteA
example.com/siteB
example.com/siteC
A category and product may exist in those sites like:
example.com/siteA/category/subcategory/productABC
I have 3 new urls, under 2 domains.
siteA = https://www.newsiteA.com
siteB = https://www.newsiteB.com
siteC = https://www.newsiteB.com/siteC
The problem is redirecting the old urls and their contents, to the new url while also redirecting with www and https. I cannot get them to all work together.
An example of a desired redirect:
http://example.com/siteA/categoryA/*contents*
to
https://www.newsiteA.com/categoryB/*contents*
contents being anything after that url. I've been trying via htaccess (of a magento site) but dont mind doing it via another method. Suggestions are greatly appreciated.