// .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L]

# یان لە PHP دا
function serveStaticFile($path) {
    $mime_types = [
        'css' => 'text/css',
        'js' => 'application/javascript',
        'png' => 'image/png',
        'jpg' => 'image/jpeg',
        'gif' => 'image/gif'
    ];
    
    $ext = pathinfo($path, PATHINFO_EXTENSION);
    
    if (file_exists($path) && isset($mime_types[$ext])) {
        header("Content-Type: " . $mime_types[$ext]);
        readfile($path);
        exit;
    }
}