lim211 Posted February 25, 2015 Share Posted February 25, 2015 I installed cc6.0 successfully, I created a new product and category, but they both are blank page, show "page not found". How to solve this problem? Thank you! Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 25, 2015 Share Posted February 25, 2015 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. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 25, 2015 Share Posted February 25, 2015 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. Quote Link to comment Share on other sites More sharing options...
lim211 Posted February 26, 2015 Author Share Posted February 26, 2015 Thank you for your reply, I checked that the file .htaccess exists there, and content is the same, no problem. my server is Win 2003 IIS6.0, how to check the mod_rewrite ? Thank you! Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 26, 2015 Share Posted February 26, 2015 You need a Linux or Unix web hosting account with Apache webserver. CubeCart is not built for Windows hosting. https://www.cubecart.com/hosting-requirements Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 26, 2015 Share Posted February 26, 2015 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. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 26, 2015 Share Posted February 26, 2015 IIS7 supports mod_rewrite rules? Cool. I hope it does a good job of it. Quote Link to comment Share on other sites More sharing options...
swimmerbhs Posted August 8, 2015 Share Posted August 8, 2015 IIS7 supports mod_rewrite rules? Cool. I hope it does a good job of it.What would the mod_rewrite code look like? I We are running IIS 8 Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 8, 2015 Share Posted August 8, 2015 I have no answer (IIS8 is not in my area of interest), but a google search for iis8 url rewrite has some good hits. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.