joelmalach Posted November 24, 2020 Share Posted November 24, 2020 Hi. Something odd has happened to my Cubecart site today. Every page I click on shows 404 page not found. After much checking, I have found that it will show the page if I add .html to the end of the url. In my .htaccess file, it has RewriteRule ^(.*)\.html?$ index.php?seo_path=$1 [L,QSA] Which I think is correct On my Settings, Store Settings, Search Engines page, it has the following settings Add category to product URL path - No Add subcategories to category URL path - Yes SEO URL Extension - None Product , Category & Document Meta Data - Disabled - Use global metadata only I don't recall changing any of these settings. Please, does anyone know what the solution is? Link to comment Share on other sites More sharing options...
Al Brookbanks Posted November 24, 2020 Share Posted November 24, 2020 No that .htaccess is wrong. Have a read of the release notes in the forum announcement. Link to comment Share on other sites More sharing options...
bsmither Posted November 24, 2020 Share Posted November 24, 2020 The RewriteRule has been changed to: RewriteRule ^(.*)?$ index.php?seo_path=$1 [L,QSA] If your site uses a different web server (nginx, for example), you will need to figure out how to update it's location blocks. Link to comment Share on other sites More sharing options...
joelmalach Posted November 24, 2020 Author Share Posted November 24, 2020 Thanks both. For clarity to anyone having the same problem, here's what is says in the Release Notes If you see 404 errors after upgrade please either delete the .htaccess file so that it can automatically be regenerated or find; RewriteRule ^(.*)\.html?$ index.php?seo_path=$1 [L,QSA] and replace with RewriteRule ^(.*)?$ index.php?seo_path=$1 [L,QSA] Now working like a dream! Link to comment Share on other sites More sharing options...
Al Brookbanks Posted November 24, 2020 Share Posted November 24, 2020 Pleased to hear that fixed it. In most cases it will update the htaccess file automatically on upgrade, permissions permitting. Link to comment Share on other sites More sharing options...
MARIO AWNA Posted December 6, 2020 Share Posted December 6, 2020 Hi. I just saw this discussion. I had this issue but I clicked "Rebuild Sitemap" on maintenance and fixed the .html issue. Best wishes Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.