AuthType Basic
AuthName "Zone protegee - Re-info.fr"
AuthUserFile /home/skqgfhe/USER/.htpasswd
Require valid-user

RewriteEngine On

# Redirect .html URLs to clean URLs (for SEO)
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.html\sHTTP [NC]
RewriteRule ^ %1 [R=301,L]

# Serve .html files without typing .html
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
