D
D
DeniSidorenko2020-05-12 06:33:54
opencart
DeniSidorenko, 2020-05-12 06:33:54

How to redirect opencart?

Hello, there is an account management page
site.ru/index.php?route=account/account
How can I make it always redirect to

site.ru/index.php?route=account/edit
Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2020-05-12
@DeniSidorenko

Alternatively, set a 301 redirect in the account/account controller
catalog\controller\account
Right after Insert the redirect
public function index() {

$this->response->redirect($this->url->link('account/edit', '', true));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question