htaccess menulis ulang parameter opsional

RewriteRule ^friends/([^/]*)/?(.*)$ friends.php?name=$1&page=$2
Homeless Hoopoe