When I try to access using /sitemap.xml, it just loads the home screen, nothing changes in the URL, no matter what I put after the slash, it gives me the home page.
I think the sitemap.xml file is not found, so the homepage is displayed. If I don't use .htaccess file it works fine.
This is the code for the .htaccess file:
RewriteEngine On RewriteRule ^([^/]+)$ index.php?page= [QSA,L] RewriteRule ^/$ index.php [NC]
You need to exclude it in the rewrite rules that currently capture sitemap.xml, for example by adding a rewrite condition in front to test if it is not a sitemap file name: