Jump to content

seeing some apache errors


keat

Recommended Posts

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 ?

Link to comment
Share on other sites

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]

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...