SEO and SSL Bug

I am setting up v2.0.6 from scratch on a new site. I activated SEO feature, and all is good until I activate SSL checkout. SEO URL’s are not working on the SSL URL’s.



Also there seems to be a bug with the SSL URL’s as well…



On my server I can share my SSL with all domains. Using ‘cscart.com’ as the example URL, the normal URL would be ‘www.cscart.com’.



Using the shared SSL, the URLS would look like this:



[url]https://secure.myurl.com/cscart.com/[/url]



NOW, without the ‘/’ at the end of the URL the URL would then change to:



[url]https://secure.myURL.com/~userid[/url]



This is where the problem is coming in at. On the secure URL, CS-Cart is dropping part of the link somewhere because some of the links show up correctly, and some do not.



Example: I added two items to the cart, and in the ‘tools-helper’ DIV it shows:



‘2 item(s), Subtotal: $325.00 | Checkout’



and the links are formatted correctly here on the non-SSL side:



[url]http://www.cscart.com/store/index.php?dispatch=checkout.cart[/url]

[url]http://www.cscart.com/store/index.php?dispatch=checkout.checkout[/url]



However, once you click on one of the URL’s and are taken over to the SSL side, those same URL’s now look like this:



[url]https://secure.myurl.com/~userid/store/index.php?dispatch=checkout.cart[/url]

[url]https://secure.myurl.com/~userid/store/index.php?dispatch=checkout.checkout[/url]



And no longer work because it is using the ‘~userid’ rather than the domain name. (URL’s do not match)



And as I mentioned none of the SEO URL’s work from the SSL side either.





In my case the URL setup in the ‘config.local.php’ file is as such:



// Host and directory where software is installed on no-secure server

$config[‘http_host’] = ‘www.cscart.com’;

$config[‘http_path’] = ‘/store’;



// Host and directory where software is installed on secure server

$config[‘https_host’] = ‘secure.myurl.com’;

$config[‘https_path’] = ‘/cscart.com/store’;



I have this same setup working on previous versions (1.3.3, and 1.3.4), without any issues.





Please advise.

Use the same information in both and see what happens.


// Host and directory where software is installed on no-secure server
$config['http_host'] = 'www.cscart.com';
$config['http_path'] = '/store';

// Host and directory where software is installed on secure server
$config['https_host'] = [COLOR="Blue"]'www.cscart.com';[/COLOR]
$config['https_path'] = [COLOR="Blue"]'/store';[/COLOR]

I am experiencing a problem with SSL and SEO too… In my case, the URLs are exactly the same for SSL and non-SSL, however, the SSL urls are ‘not found’.

[quote name=‘ogia’]I am experiencing a problem with SSL and SEO too… In my case, the URLs are exactly the same for SSL and non-SSL, however, the SSL urls are ‘not found’.[/QUOTE]



Not found where? 404?

Yes, not found as in 404 error.



[url]http://store.com/category/product[/url] → works

[url]https://store.com/category/product[/url] → 404 error



SSL is working in other areas of the store like the cart and my account - pages that don’t use SEO links.

[quote name=‘ogia’]Yes, not found as in 404 error.



[url]http://store.com/category/product[/url] → works

[url]https://store.com/category/product[/url] → 404 error



SSL is working in other areas of the store like the cart and my account - pages that don’t use SEO links.[/QUOTE]



With default cs-cart functionality you can enable ssl for cart, checkout, admin panel and login pages and other pages. I don’t think you can enable ssl for products and categories with default setup.



On dedicated server control panel I can enable ssl for all domain, whatever cs-cart wants it or not.

Well, my server has SSL enabled too. That is not the issue. The problem is that the SEO links don’t work with https:// I think this can be fixed in the mod_rewrite that cs-cart uses to rewrite php urls to clean urls. I think it would classify as a bug since it should be written into the file to begin with. I guess I’ll try to dig around and fix it myself and post back what I come up with since no one else has done it yet (apparently).



I’ve only noticed the problem when clicking on navigation links from the shopping cart or a secure area. The links point to https:// from there so they give the user a not found 404 error.

I’ve come across this same issue and don’t know how to resolve it. Thanks!

I haven’t had a chance to research this yet. I am not a mod rewrite expert though. I will need a solution before I go live so if I can’t figure it out I’ll contact cs-cart support.

I have a similar issue that's being discussed here. My SSL links for the items in the cart don't resolve with SSL and get redirected back to the root of the site.



Was there a solution to this?