fixes in routing and htaccess