RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([\s\S]*)$ index.php?pg=$1 [L,NC,QSA]

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "modification"
</IfModule>