RewriteEngine on RewriteRule ^/?get/(.+)$ /dweet.io/redis.php?action=get&key=$1 RewriteRule ^/?set/(.+)/(.+)$ /dweet.io/redis.php?action=set&key=$1&val=$2