RewriteRule - two parameters but last parameter is optional
snippet in htaccess

RewriteRule - two parameters but last parameter is optional

user3552

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