RewriteEngine On

# Hide the public_kings folder from the visible URL
RewriteCond %{REQUEST_URI} !^/public_kings/
RewriteRule ^(.*)$ /public_kings/$1 [L]

# Automatically resolve .php extensions so URLs look clean
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [L,QSA]