<?php
// Redirect to CodeIgniter sitemap controller
header('Content-Type: application/xml; charset=utf-8');
header('Location: ' . str_replace('sitemap.xml', 'index.php/sitemap', (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"));
exit;
?>