Automatically configure .htaccess redirection to latest version