Answer the question
In order to leave comments, you need to log in
The URL request "/sitemap" opens the file "/sitemap.xml" how to fix it so that "/sitemap" opens?
Good afternoon! Thank you so much for taking the time and effort to help others.
I'm having a problem on one server: requesting "/sitemap" returns the contents of the file "/sitemap.xml" (which is in the root of 'public_html', next to 'index.php' - which should process the request "/sitemap"); How can I make this request not return the content of "/sitemap.xml", but return the content processed by the 'index.php' file?
PS On LAN everything works fine (the request processes the index.php file)
PPS I am attaching the contents of .htaccess below
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^.*?\.(.*?\..*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTP_HOST} (.*)
RewriteCond %{REQUEST_URI} /$ [NC]
RewriteRule ^(.*)(/)$ $1 [L,R=301]
<Files .*>
Order Deny,Allow
Deny From All
</Files>
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question