RewriteEngine On
RewriteRule ^([a-zA-Z0-9]+)$ index.php?x=$1 [QSA,L]