RewriteBase /

#404頁面
RewriteRule !\.(jpg|jpeg|gif|bmp|png|tiff|JPG|JPEG|GIF|BMP|PNG|TIFF|Jpg|Jpeg|Gif|Bmp|Png|Tiff)$ /404.php

#禁止目錄瀏覽
Options -Indexes