renaming login and signup urls in WPMU

Hello,
I want to change urls on my multisite wp :
/wp-signup.php to /signup
wp-login.php to /login
What is the best way to do it, the .httaccess file or WP function exist?
P.S. I’m OK with WP and PHP, so the code version is preferable.