X
X
xpaco2017-12-05 19:07:44
htaccess
xpaco, 2017-12-05 19:07:44

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

1 answer(s)
X
xpaco, 2017-12-05
@xpaco

solved by adding a line
to .htaccess

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question