# Photocard — path independent
# রুটে বসাও বা যেকোনো ফোল্ডারে — কিছু বদলাতে হবে না

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Authorization হেডার পাস করা
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # আসল ফাইল বা ফোল্ডার হলে ছুঁয়ো না (ছবি, css, js)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    # বাকি সব index.php তে
    # RewriteBase লেখা নেই — তাই ফোল্ডার যেখানেই হোক কাজ করবে
    RewriteRule ^ index.php [L]
</IfModule>

# ফোল্ডারের ভিতর কী আছে বাইরে থেকে দেখা যাবে না
Options -Indexes

# config.php সরাসরি খোলা বন্ধ
<Files "config.php">
    Require all denied
</Files>

# ছবি ব্রাউজারে জমা থাকবে — সাইট দ্রুত হবে
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/png  "access plus 1 month"
    ExpiresByType text/css   "access plus 1 month"
    ExpiresByType application/javascript "access plus 1 month"
</IfModule>
