vidmarc Posted June 27, 2018 Share Posted June 27, 2018 I've just rebuilt the sitemap and submitted to google console. However, I see that the links generated by Cubecart are all http pages, rather than https. I've set up https, so is this ok? Link to comment Share on other sites More sharing options...
Noodleman Posted June 27, 2018 Share Posted June 27, 2018 have you enabled HTTPS in your store settings? Which version of CubeCart? Link to comment Share on other sites More sharing options...
vidmarc Posted June 27, 2018 Author Share Posted June 27, 2018 Latest Cubecart. Yes, https is set up. Link to comment Share on other sites More sharing options...
Noodleman Posted June 27, 2018 Share Posted June 27, 2018 store URL in your screen shot is http://, not https:// Link to comment Share on other sites More sharing options...
vidmarc Posted June 27, 2018 Author Share Posted June 27, 2018 When I change it to https and save, it reverts back to http, as per the example. Link to comment Share on other sites More sharing options...
Noodleman Posted June 27, 2018 Share Posted June 27, 2018 ok, figured it out. although you have SSL enabled, you are accessing the admin area over http. When you rebuild the sitemap it will use whatever you are logged into the store using, http or https. ensure you are in the admin area using https and it should work when you rebuild. I think this is a bug and I'll report it to CubeCart. https://github.com/cubecart/v6/issues/2087 Link to comment Share on other sites More sharing options...
vidmarc Posted June 27, 2018 Author Share Posted June 27, 2018 I'm getting a 404 when I try to login via https. I think I mentioned this a while ago. Actually, I can now get to the admin page, but my username and password are not recognised. That's what I reported here a few months ago. Scrub that, managed to re-set it. Strange. Link to comment Share on other sites More sharing options...
Noodleman Posted June 27, 2018 Share Posted June 27, 2018 hmm, that needs to be resolved, perhaps a disconnect between the admin filename or foldername and the entry in the /includes/globals.inc.php file. double check both match the names on your server. If you have no custom changes to the admin theme, try uploading it again from the installer, just replace the existing files. Link to comment Share on other sites More sharing options...
vidmarc Posted June 27, 2018 Author Share Posted June 27, 2018 The ssl setting still reverts to http instead of https when saved. But the sitemap is now https, so that now works. :) Link to comment Share on other sites More sharing options...
Noodleman Posted June 27, 2018 Share Posted June 27, 2018 I think it's meant to. it used to allow a https value on earlier versions, but mine does the same as well. Link to comment Share on other sites More sharing options...
havenswift-hosting Posted June 27, 2018 Share Posted June 27, 2018 If you have a SSL installed and configured to use in CubeCart then you should add rewrite directives to your .htaccess to force all connections to https Link to comment Share on other sites More sharing options...
vidmarc Posted June 27, 2018 Author Share Posted June 27, 2018 Is there a sample .htaccess file anywhere I can use? Here's what I currently have: ##### START CubeCart .htaccess ##### ### File Security ### <FilesMatch "\.(htaccess)$"> Order Allow,Deny Deny from all </FilesMatch> ### Apache directory listing rules ### DirectoryIndex index.php index.htm index.html IndexIgnore * <ifModule mod_headers.c> Header always append X-Frame-Options SAMEORIGIN </ifModule> ### Rewrite rules for SEO functionality ### <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / ##### START v4 SEO URL BACKWARD COMPATIBILITY ##### RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule cat_([0-9]+)(\.[a-z]{3,4})?(.*)$ index.php?_a=category&cat_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule prod_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule info_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=document&doc_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule tell_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule _saleItems(\.[a-z]+)?(\?.*)?$ index.php?_a=saleitems&%1 [NC,L] ##### END v4 SEO URL BACKWARD COMPATIBILITY ##### RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*)\.html?$ index.php?seo_path=$1 [L,QSA] </IfModule> ### Default store 404 page ### ErrorDocument 404 /index.php ## Override default 404 error document for missing page resources ## <FilesMatch "\.(gif|jpe?g|png|ico|css|js|svg)$"> ErrorDocument 404 "<html></html> </FilesMatch> ##### END CubeCart .htaccess ##### Link to comment Share on other sites More sharing options...
havenswift-hosting Posted June 27, 2018 Share Posted June 27, 2018 We set it up automatically for all sites hosted with us but the problem is that there is no standard set of directives that works in all cases as it is dependent on server configuration, what web server you are using and how that is configured - you are better off getting support from your hosting company. Link to comment Share on other sites More sharing options...
Noodleman Posted June 27, 2018 Share Posted June 27, 2018 here's what I use on my site for http to https and also for non-www to WWW, although I recently commented out the http to https and just let CubeCart do it. Link to comment Share on other sites More sharing options...
havenswift-hosting Posted June 27, 2018 Share Posted June 27, 2018 This doesnt cope with redirecting from the /index.php url to the main domain but is also different from what we use as the default settings for all our clients, so highlights my point - best to ask your hosting company (unless you want to move your site to us, when we will set it all up to work perfectly for you !) Ian Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.