Jump to content

Sitemap question


vidmarc

Recommended Posts

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

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...