Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Issue with Redirects Rate Topic   - - - - -

 
  • WebTek
  • Member
  • Authorized Reseller
  • Join Date: 10-Oct 07
  • 109 posts

Posted 26 November 2013 - 02:23 PM #1

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:

www.DOMAIN.com/?sef_rewrite=1

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!

 
  • StellarBytes
  • Senior Member
  • Members
  • Join Date: 08-Aug 11
  • 1807 posts

Posted 26 November 2013 - 04:01 PM #2

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.
Hire StellarBytes for CS-Cart Design & Development Services

 

Posted 30 March 2016 - 02:03 PM #3

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.safetyma.../?sef_rewrite=1but when I navigate to another page, it still resolves with the sef_rewrite=1 tag on the end of the URL.