G
G
gomer17262016-03-02 19:52:00
opencart
gomer1726, 2016-03-02 19:52:00

How to make an unconditional redirect from the main page to the directory?

I need to not have the main thing at all, but when entering the site, they fall into the first category. Is it possible?
Tried via index.php

// Router
if (isset($request->get['route'])) {
  $action = new Action($request->get['route']);
} else {
  $action = new Action('common/home');
}

change $action = new Action('common/home'); on the category but still no products appear + there is still a main page

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
web-mechanic, 2016-03-03
@amfetamine

make a redirect through .htaccess and don't rack your brains

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question