Answer the question
In order to leave comments, you need to log in
CNC for custom pages in OpenCart 2?
I need to bring the site page site.ru/index.php?route=blog/blog to the form site.ru/blog. How to do this without modules, for example, by editing the controller for issuing the URL?
Each page was created using TPL+PHP (Template and Controller) and has the URL site.ru/index.php?route=blog/blog.
Default CNCs for OpenCart are set in the settings, but, for some reason, their effect does not apply to manually created pages.
Of course, pages with unique CNC can also be created through the admin panel (Articles). But such pages are more suitable for posting simple textual information. In addition, they are very difficult to format, because. each page is generated by the same information.tpl pattern. In general, it's difficult.
In the vastness of Google, people offer the SeoPro module, but it does not fit OpenCart 2, and if it does, it displays an error in PHP (Headings already sent) or even worse (
Many thanks in advance for the advice!
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