Index: cronjobs/updateviewcount.php
===================================================================
--- cronjobs/updateviewcount.php	(revision 23678)
+++ cronjobs/updateviewcount.php	(working copy)
@@ -60,6 +60,7 @@
 $fileName = $logFileIni->variable( 'AccessLogFileSettings', 'LogFileName' );
 
 $prefixes = $logFileIni->variable( 'AccessLogFileSettings', 'SitePrefix' );
+$pathPrefixes = $logFileIni->variable( 'AccessLogFileSettings', 'PathPrefix' );
 
 $ini = eZINI::instance();
 $logDir = $ini->variable( 'FileSettings', 'LogDir' );
@@ -135,7 +136,7 @@
                         }
                     }
 
-                    if ( preg_match( "/content\/view\/full\//", $url ) )
+                    if ( strpos( $url, 'content/view/full/' ) !== false )
                     {
                         $url = str_replace( "content/view/full/", "", $url );
                         $url = str_replace( "/", "", $url );
@@ -160,8 +161,24 @@
                             {
                                 $pathIdentificationString = $db->escapeString( $firstElement );
 
-                                //check in database, if fount, add to contentArray, else add to nonContentArray.
+                                //check in database, if found, add to contentArray, else add to nonContentArray.
                                 $result = eZURLAliasML::fetchNodeIDByPath( $pathIdentificationString );
+
+                                // Fix for sites using PathPrefix
+                                $pathPrefixIndex = 0;
+                                while ( !$result )
+                                {
+                                    if ( $pathPrefixIndex < count( $pathPrefixes ) )
+                                    {
+                                        // Try prepending each of the existing pathPrefixes, to see if one of them matches an existing node
+                                        $pathIdentificationString = $db->escapeString( $pathPrefixes[$pathPrefixIndex] . '/' . $firstElement );
+                                        $result = eZURLAliasML::fetchNodeIDByPath( $pathIdentificationString );
+                                    }
+                                    else
+                                        break;
+                                    $pathPrefixIndex++;
+                                }
+
                                 if ( $result )
                                 {
                                     $contentArray[] = $firstElement;
Index: settings/logfile.ini
===================================================================
--- settings/logfile.ini	(revision 23678)
+++ settings/logfile.ini	(working copy)
@@ -11,4 +11,6 @@
 # apache log will start with for example mysite/content/view/full/node_id. To
 # remove this prefix in apache log before analysis the log, add mysite to 
 # SitePrefix. Example: SitePrefix[]=mysite
-SitePrefix[]=
\ No newline at end of file
+SitePrefix[]=
+# If any site accesses use the PathPrefix setting, enter them here
+PathPrefix[]=
Index: settings/site.ini
===================================================================
--- settings/site.ini	(revision 23678)
+++ settings/site.ini	(working copy)
@@ -596,6 +596,7 @@
 
 
 # Hides this part from the start of the url alias
+# If you use this setting, you also need to use the PathPrefix setting in logfile.ini.
 PathPrefix=
 
 # Which URLs to exclude from being affected by PathPrefix setting.
