views:

110

answers:

2

I'm now doing it this way:

rewriterule ^questions/tagged/(.*) qas.php?q=[$1]

Which didn't do encoding stuff yet.

A: 

I can't figure out what your question actually is asking, but since you know what you're looking for maybe you'll find it in condensed documentation like a cheat sheet.

My guess at answering your question, which I'm uncertain of, is:

rewriterule ^questions/tagged/(.*) qas.php?q=[$1] [L]
rewriterule ^qas.php?q=(.*) questions/tagged/[$1] [R=301,L]
dlamblin
A: 

I'm guessing you want to have $1 URL-encoded so it's valid as a query argument? You don't need additional encoding for that, as any character that is valid in the path part is also valid in the query part. So the rule you have there should suffice.

Wim