Ported the RewriteRule and RewriteCond line parser from the source