ftpauth rewrite