CubeCart uses SEO-friendly URLs that require your web server to be configured for URL rewriting. If you see 404 errors on product, category, or content pages, check the following.

Apache

  1. Ensure mod_rewrite is enabled on your server.
  2. Check that a .htaccess file exists in your store’s root directory. If missing, create one with:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?$1 [L,QSA]
    </IfModule>
  3. If your store is in a subdirectory (e.g. /shop/), update RewriteBase /shop/ accordingly.
  4. Ensure your hosting allows .htaccess overrides (AllowOverride All in Apache config).

Nginx

Nginx does not use .htaccess files. Add this to your server block:

location / {
    try_files $uri $uri/ /index.php?$args;
}

See our full Nginx configuration guide for details.

Other Checks

  • If SEO URLs are causing problems, you can temporarily disable them in Admin > Settings > SEO to confirm this is the issue.
  • Check your store’s base URL is correct in includes/global.inc.php.