Issue with Redirects

We rebuilt a client's site in CS Cart 3.0.6 and we're trying to do the redirects in htaccess. We're using the following format:



RewriteCond %{REQUEST_URI} ./index.php

RewriteRule ^.
$ http://www.NEW_SITE.com [L,R=301]



We had to do this with all of the categories and most of the pages.



But now whenever we click on a link to that has a redirect attached to it we get the following:



Website Domain Names, Online Stores & Hosting - Domain.com



and are unable to view the page. We do have the SEO add-on enabled.



We've done other carts doing these exact steps with no issues. What's going on? Unfortunately upgrading to the new cart is not an option.



Thanks!

The “sef_rewrite” happens because the URL does not exist in the SEO URL's list in the database. I too have the same issue - although I don't have the issue of not being able to view the page - and have never found a workaround. So /oldcategory/my-old-url.html redirects to /my-new-url.html?sef_rewrite=1 - the page works, I use canonical tags to tell search engines the URL should be “my-new-url.html” and don't have any issues other than the ugly looking nature of the URL.

Is there any way of getting rid of URL's which have the sef_rewrite=1 at the end of them? I've looked everywhere and can't find a solution. For example, this page resolves whether or not it has sef_rewrite=1 at the end of the URL: https://www.safetymart.com/eye-face-and-head-protection/page-2/?sef_rewrite=1but when I navigate to another page, it still resolves with the sef_rewrite=1 tag on the end of the URL.