modfied htaccess urlrewrite rules to be compatible with apache<2.3