# 보안: .git / 숨김 설정 노출 차단
RedirectMatch 403 (?i)/\.(git|env|htaccess|user\.ini)
RedirectMatch 403 (?i)^/dev/

<IfModule mod_rewrite.c>
  Options +FollowSymLinks
  RewriteEngine On

  # .php 처리
  RewriteCond %{REQUEST_FILENAME}.php -f
  RewriteRule ^(.+)$ $1.php [L]

  # 이미지 확장자 처리
  RewriteCond %{REQUEST_FILENAME}.jpg -f
  RewriteRule ^(.+)$ $1.jpg [L]

  RewriteCond %{REQUEST_FILENAME}.png -f
  RewriteRule ^(.+)$ $1.png [L]

  RewriteCond %{REQUEST_FILENAME}.gif -f
  RewriteRule ^(.+)$ $1.gif [L]
</IfModule>