RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
$ids = [6, 9, 1];
$idsString = implode(',', $ids);
$sql = "SELECT * FROM `cards` WHERE `id_card` IN ($idsString) ORDER BY FIELD (`id_card`, $idsString)";
$i = count($url_arts);