S
S
Sergey Bard2018-06-27 13:19:16
htaccess
Sergey Bard, 2018-06-27 13:19:16

How to change sitemap url?

Hello everyone, I can’t find how to change index.php?route=extension/feed/google_sitemap to sitemap.xml, I searched everything but there is no answer anywhere, opencart 2.3 Google Sitemap module in .htaccess has this rule

RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
, cnc turned on (SeoPro)
on when trying to redirect, it throws either on the sitemap in html format (i.e. information/sitemap) or on index.php?route=extension/feed/google_sitemap but not on sitemap.xml

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2018-06-27
@serg_small_developer

RewriteCond %{QUERY_STRING} (^|&)route\=extension/feed/google_sitemap($|&)
RewriteRule ^index\.php$ /map.xml? [L,R=301]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question