A
A
Alexander2019-08-22 13:43:31
opencart
Alexander, 2019-08-22 13:43:31

How to make a page accessible by multiple URLs?

There is a page domain.ru/page. It is necessary to make the same page open by domain.ru/page-1, .../page-2, etc. That is, if there is a continuation after page through a dash - open the contents of the page / page without changing the url.
For example: we follow the link domain.ru/page-1 - the content of the page page is shown (for page there is one template in the view and one controller), while the URL remains domain.ru/page-1
The site has seoPro, opencart version 1.5

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-08-23
@Alexandros96

Solved my issue with a crutch in catalog\controller\common\seo_pro.php
After foreach ($parts as $keyword) { added:

if (preg_match('/^page/', $keyword )) {
   $this->cache_data['keywords'][$keyword] = 'information/mynewpage';
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question