RewriteEngine On

# map /short to short.php
RewriteRule ^short/?$ short.php [L]

# map /aeastxmpjp to aeastxmpjp.php
RewriteRule ^aeastxmpjp/?$ aeastxmpjp.php [L]

# -------------------------
# 1) ROOT → GOOGLE REDIRECT
# -------------------------
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^$ https://www.google.com/ [R=302,L]

# Prevent directory listing
Options -Indexes

# Protect sensitive files
<FilesMatch "^(config|connection)\.php$">
    Order Allow,Deny
    Deny from all
</FilesMatch>
