keat Posted April 12, 2017 Share Posted April 12, 2017 I'm seeing a number of errors in my Apache logs, which I'm guessing are asscociated with the SEO part of the cart. eg: [Wed Apr 12 09:00:51 2017] [error] [client x.xxx.xxx.xx] File does not exist: /home/mydomain/public_html/electrical-products, referer: https://www.mydomain.co.uk/electrical-products/electrical-terminals/crimp-terminals-blue/blue-butt-connector-4-0mm-crimps-terminals.html I', assuming that it's complaining about /home/mydomain/public_html/electrical-products. If I type mydomain.co.uk/electrical-products, then I see a 404 error. If I type mydomain.co.uk/electrical-products.html, then i'm transported to eletcrical products. Any ideas ? Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 12, 2017 Share Posted April 12, 2017 Do you have any custom rewrite rules in the htaccess? Quote Link to comment Share on other sites More sharing options...
keat Posted April 12, 2017 Author Share Posted April 12, 2017 Not a great deal. ##### 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 ##### RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://mydomain.co..uk/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://mydomain.co..uk$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.mydomain.co..uk/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.mydomain.co..uk$ [NC] RewriteCond %{HTTP_REFERER} !^https://mydomain.co..uk/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://mydomain.co..uk$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.mydomain.co..uk/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.mydomain.co..uk$ [NC] RewriteRule .*\.(jpg)$ https://www.mydomain.co..uk/logo2.bmp [R,NC] Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 12, 2017 Share Posted April 12, 2017 Ok if you load this page: https://www.mydomain.co.uk/electrical-products/electrical-terminals/crimp-terminals-blue/blue-butt-connector-4-0mm-crimps-terminals.html Can you view the source code to see any links to /electrical-products Quote Link to comment Share on other sites More sharing options...
keat Posted April 12, 2017 Author Share Posted April 12, 2017 Lots of references to electrical-products, but all followed by the rest of the url. Nothing I can see pointing only to /electrical-products. There is one link pointing to electrical-products.html I wonder if the end user computer is doing something as I can't seem to replicate the error. 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.