<FilesMatch "\.(bak|inc|lib|sh|tpl|lbi|dwt)$">
    # Apache 2.4以下
    Order Deny,Allow 
    Deny from all
 
    # Apache 2.4以上
    # Require all denied
</FilesMatch>

RewriteEngine On

#RewriteBase /
RewriteRule ^index\.html$    index\.php [L]
RewriteRule ^sitemap\.xml$    sitemap\.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)

# common
RewriteRule ^([^?]*) index.php?route=$1 [L,QSA]