# PRODUCTION — subdomain qc.dev.wtllp.co.in (document root = the "qc" folder).
# Serve the CodeIgniter app from the subdomain root while keeping all code
# inside public/. Every request that isn't already aimed at public/ is
# internally rewritten into it, so the URL stays clean (no /public).
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # Leave requests already targeting public/ alone (prevents a rewrite loop).
    RewriteCond %{REQUEST_URI} !^/public/
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
