Options +FollowSymLinks
Options -Indexes
Options -MultiViews

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteRule ^Public/ - [L]
RewriteCond %{DOCUMENT_ROOT}/Public/$1 -f
RewriteRule (.+) Public/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-D
RewriteCond %{REQUEST_FILENAME} !-F
RewriteCond %{REQUEST_FILENAME} !-L

RewriteRule ^(.+)$ index.php?pg=$1 [NC,QSA,L]
</IfModule>