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
- Ensure mod_rewrite is enabled on your server.
- Check that a
.htaccessfile 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> - If your store is in a subdirectory (e.g.
/shop/), updateRewriteBase /shop/accordingly. - Ensure your hosting allows
.htaccessoverrides (AllowOverride Allin 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.