Options -Indexes
RewriteEngine On

# If the request is for a real file or directory, serve it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Strip .php extension — /buy-instagram-followers → buy-instagram-followers.php
RewriteRule ^([^.]+)$ $1.php [L]

# Redirect /page.php → /page (301 permanent)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{THE_REQUEST} ^GET\s.+\.php[\s?] [NC]
RewriteRule ^(.+)\.php$ /$1 [R=301,L]

# Internally rewrite /page → page.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^.]+)$ $1.php [L]

# EXCEPTION: Don't redirect buy-discord-boosts.html
RewriteCond %{REQUEST_URI} !^/buy-discord-boosts\.html$
RewriteRule ^(.+)\.html$ /$1 [R=301,L]