added htaccess and dispatch