stl314 Posted February 12, 2017 Share Posted February 12, 2017 I created a testing website copy of my current store, but now when i click on products or any links it gives me a 404 page Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 12, 2017 Share Posted February 12, 2017 Is it CubeCart's 404 page, or the web server's 404 plain text message? If the plain message (or, if your hosting provider has their custom page), then probably the .htaccess file needs updating. Quote Link to comment Share on other sites More sharing options...
stl314 Posted February 12, 2017 Author Share Posted February 12, 2017 Yes, it is my hosting 404, but sure where on my htaccess file would need updated ##### START CubeCart .htaccess ##### ### 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 RewriteBase / ##### START v4 SEO URL BACKWARD COMPATIBILITY ##### RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule cat_([0-9]+)(\.[a-z]{3,4})?(.*)$ index.php?_a=category&cat_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule prod_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule info_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=document&doc_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule tell_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule _saleItems(\.[a-z]+)?(\?.*)?$ index.php?_a=saleitems&%1 [NC,L] ##### END v4 SEO URL BACKWARD COMPATIBILITY ##### RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*)\.html?$ index.php?seo_path=$1 [L,QSA] </IfModule> ### Default store 404 page ### ErrorDocument 404 /index.php ## Override default 404 error document for missing page resources ## <FilesMatch "\.(gif|jpe?g|png|ico|css|js|svg)$"> ErrorDocument 404 "<html></html> </FilesMatch> ##### END CubeCart .htaccess ##### Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 12, 2017 Share Posted February 12, 2017 If you created a test store in a subfolder, then the .htaccess file should have these directives changed: From: RewriteBase / To: RewriteBase /subfolder and From: ErrorDocument 404 /index.php To: ErrorDocument 404 /subfolder/index.php However, because not even the ErrorDocument directive is being honored, I think the web server is not configured to "Allow Override" so that these directives will be executed. If the web server needs to be configured for this installation, your hosting provider may need to get involved. Quote Link to comment Share on other sites More sharing options...
Noodleman Posted February 12, 2017 Share Posted February 12, 2017 just delete the .htaccess file, then let it build a new one and re-add any custom rules. job done. Quote Link to comment Share on other sites More sharing options...
stl314 Posted February 12, 2017 Author Share Posted February 12, 2017 Moved it to a root folder on a different domain and it works 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.