A new comer to mod_rewrite within subdirectory-esque structure. Particularly, want to display Web addresses formatted such as this:


for this:


Anybody possess a quick snippet for achieving this? Much appreciated.

Just going from memory:

RewriteRule ^/signup/?key=(.*)$ /signup/$1 [L]
RewriteRule ^signup\/([a-z]*)\/?$ signup/?key=$1 [NC,L]

Is going to do it. In history favorit may be the mod_rewrite cheat sheet v2.