L
L
lexstile2018-01-25 14:34:02
htaccess
lexstile, 2018-01-25 14:34:02

404 error instead of sitemap?

The essence is this:
There is a page in the admin panel - a sitemap with url = sitemap
There is a sitemap in xml-format.
So, if the xml file name matches the page url, a 404 error is displayed.
What could be the problem?
Error text:
Not Found
The requested URL /sitemap.xml/ was not found on this server.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2019-11-10
@dodo512

RewriteRule ^(.*)$ /public/$1

Remove slash before publicRewriteRule ^(.*)$ public/$1
RewriteCond  %{REQUEST_FILENAME} !-f # не файл
RewriteCond  %{REQUEST_FILENAME} !-d # не папка

Remove comments or move them to a new line.
# не файл
RewriteCond  %{REQUEST_FILENAME} !-f
# не папка
RewriteCond  %{REQUEST_FILENAME} !-d

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question