RewriteEngine On

#RewriteCond %{REQUEST_FILENAME} !sitemap.xml
#RewriteCond %{HTTP:X-Forwarded-Proto} !https
#RewriteRule .* https://online-dating.local%{REQUEST_URI} [L]

RewriteCond %{REQUEST_FILENAME} !sitemap.xml
RewriteCond %{HTTPS} off
RewriteRule .* https://online-dating.local%{REQUEST_URI} [L]

RewriteCond %{REQUEST_FILENAME} !sitemap.xml
RewriteCond %{HTTP_HOST} !^online-dating\.local$
RewriteRule .* https://online-dating.local%{REQUEST_URI} [L]

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