<IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteRule ^test([^/\.]+)/?$ index.php?x=test$1 [L] </IfModule>