Jump to content

Category page and product page all blank


lim211

Recommended Posts

Welcome lim211! Glad to see you made it to the forum.

 

When the web server sends back a "404 Page not found", it is likely that the "search-engine-friendly" (SEO) URLs being generated by CubeCart are not getting rewritten by the web server.

 

When CubeCart is setup, there should be a file created in the main CubeCart folder, .htaccess - unless it already exists - that has URL rewrite rules that rewrites the SEO URLs to a format that can be used by PHP.

 

So, check to make sure that .htaccess exists and that it's contents contains rewrite rules. Then, make sure your web server uses this .htaccess file and has enabled whatever functionality (mod_rewrite for Apache) is available to understand the rewrite statements.

 

Of the web servers I am familiar with, 'Apache' and 'Nginx' can use the .htaccess files. Web servers 'Hiawatha' and 'Abyss' do not and require their own methods of accomplishing URL rewrites.

Link to comment
Share on other sites

The .htaccess content should be:

## File Security
<FilesMatch ".(htaccess)$">
 Order Allow,Deny
 Deny from all
</FilesMatch>

#### Apache directory listing rules ####
DirectoryIndex index.php index.htm index.html
IndexIgnore *

#### Rewrite rules for SEO functionality ####
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !=/favicon.ico
  RewriteRule ^(.*).html?$ index.php?seo_path=$1 [L,QSA]
</IfModule>

.. I WISH there was a reliable way to detect mod_rewrite in PHP.

Link to comment
Share on other sites

While it is said that CubeCart is not built (that is, not specifically tested and verified) for Windows hosting, the current codebase is completely compatible.
 
Historically, there were issues with some server and database non-default and default settings.
 
Now, with CC6's insistence on operating with search-engine-friendly (SEO) URLs, the web server needs to have some sort of URL rewriting capability.
 
For IIS6, I have used Ionics Isapi Rewrite (for other projects many years ago). There is also Helicon Tech ISAPI_Rewrite 3. You can also try to get IIS7 installed.

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...