RewriteEngine On
# Redirect shanju168.fun to shanju168.site
# RewriteCond %{HTTP_HOST} ^shanju168\.site [NC]
# RewriteRule ^(.*)$ https://shanju168.fun/$1 [L,R=301]

# Automatically add .php extension for files
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [L]