moved htaccess to app directory, and enabled the www redirection