RewriteEngine ON
RewriteEngine ON

RewriteRule ^([a-z,0-9,A-Z,_-]+)$ index.php?pg=$1