OK, this works now.
I can with above code create individual redirects. In order to redirect the home page, I used cpanel to create a redirect. I merged the whole thing in one .htaccess an it is now working fine.
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ "https\:\/\/wholesale\.newdomain\-inc\.com\/" [R=301,L]
RewriteCond %{QUERY_STRING} ^main_page=index&cPath=74$ [NC]
RewriteRule ^(index\.php)?$ https://wholesale.newdomain-inc.com/product-category/tin-star-lights? [R=301,L,NE]
RewriteCond %{QUERY_STRING} ^main_page=index&cPath=75$ [NC]
RewriteRule ^(index\.php)?$ https://wholesale.newdomain-inc.com/product-category/moravian-glass-star-lights? [R=301,L,NE]
RewriteCond %{QUERY_STRING} ^main_page=index&cPath=76$ [NC]
RewriteRule ^(index\.php)?$ https://wholesale.newdomain-inc.com/product-category/tin-stars-with-marbles? [R=301,L,NE]
RewriteCond %{QUERY_STRING} ^main_page=index&cPath=77$ [NC]
RewriteRule ^(index\.php)?$https://wholesale.newdomain-inc.com/product-category/star-of-bethlehem? [R=301,L,NE]
RewriteCond %{QUERY_STRING} ^main_page=index&cPath=78$ [NC]
RewriteRule ^(index\.php)?$ https://wholesale.newdomain-inc.com/product-category/fiesta-stars? [R=301,L,NE]
RewriteCond %{QUERY_STRING} ^main_page=products_all$ [NC]
RewriteRule ^(index\.php)?$ https://wholesale.newdomain-inc.com? [R=301,L,NE]
Would be nice if there was a path to construct this with all urls from the old to new. On another zen cart with ceon uri installed, it was easy to do with the googlefeed.xml and then create the redirect in excel. Not sure how I could construct it with these dynamic links. But for now my most urgent redirects are done. Let me know if you think this code is not what I should be using. Thanks!
Bookmarks