RewriteEngine On
RewriteCond %{REQUEST_URI} /siteworx/stats/awstats\..*([0-9]{6})\.(.*)\.html$
RewriteRule ^(.+)$ /siteworx/stats?mode=awstats&action=detail&date=%1&subpage=%2 [R,L]

RewriteCond %{REQUEST_URI} ^/(nodeworx|siteworx)(/)?$
RewriteRule ^.*$ index.php [NC]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d 
RewriteRule ^.*$ - [NC,L]

RewriteRule ^.*$ /index.php [NC,L]
