Passing 2 variables with a / in between?

I’m trying to create a pretty url from this:

I want it to look like this:

I use a rewriteurl like this:
RewriteRule ^roundsearch/([a-zA-Z0-9_-]+)/?$ seopages/roundsearch.php?id=$1&title=$2

But when trying this I get “Ups! Link broken!”

What am I doing wrong???


What you’re doing wrong is forgetting the value of the id key in your RewriteRule, i.e.,

RewriteRule ^roundsearch/[COLOR="Blue"][B]([0-9]+)/[/B][/COLOR]([a-zA-Z0-9_-]+)[COLOR="Purple"][B]/?[/B][/COLOR]$ seopages/roundsearch.php?id=$1&title=$2 [COLOR="Blue"][B][L][/B][/COLOR]

… and the Last flag (think of it as the ‘;’ terminating a statement OR ‘}’ terminating a block statement in PHP or JavaScript)!

Also, the optional directory you’ve made of your value for title will mess with your directory level (see Missing Support Files in my signature’s tutorial) so I recommend deleting the /?.