M
M
mauscode2018-12-04 13:35:02
opencart
mauscode, 2018-12-04 13:35:02

How to change url with SEO PRO in OpenCart 3?

Hello! The SEO PRO module is installed, I know that somehow it is possible to change the page address through the file itself.
Can anyone suggest how to do this?
I have a link: https://siimple.ru/index.php?route=extension/feed/...
I want to do this: https://siimple.ru/sitemap.xml
How can I do it through SEO PRO. Has anyone faced such a task?
I tried in .htaccess, it doesn't work:
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap_fast [L]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ta77r, 2018-12-06
@ta77r

To do this, add the code in the .htaccess file
and write the directive in the robots.txt file itself.
The robot will come to sitemap.xml and 301 will be redirected to index.php?route=extension/feed/google_sitemap_fast
But if you really want to get rid of the route, you need to write aliases in the oc_seo_url table. But all the same you will not register with the xml extension. So you still have to redirect to .htaccess
Source: https://ocmod.net/bystraya-karta-sajta-fast-sitemap
© Modules for Opencart

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question