htaccess reescribe parámetros opcionales
RewriteRule ^friends/([^/]*)/?(.*)$ friends.php?name=$1&page=$2
Homeless Hoopoe
RewriteRule ^friends/([^/]*)/?(.*)$ friends.php?name=$1&page=$2