Added mod_rewrite rule, some bugfixes of vtiler script