Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • entries
    3
  • comments
    9
  • views
    2,483

Убрать /index.php?route=common/home


mbrogan

1,191 views

 Share

В файле /system/library/url.php в function link добавить: 

 if($route == 'common/home') { if(!$secure) { return HTTP_SERVER; } else { return HTTPS_SERVER; } } 

 

 

Протестировано на Opencart 2.2.0.0

 Share

2 Comments


Recommended Comments

Подскажите а как это сделать для поддоменов? Ваш способ переадресует на главную страницу сайта а не поддомена.

Link to comment
В 22.10.2020 в 19:59, Robusta сказал:

Подскажите а как это сделать для поддоменов? Ваш способ переадресует на главную страницу сайта а не поддомена.

Попробуйте вывести массив $_SERVER, и посмотреть, есть ли там поддомен. Далее, уже добавить переменную к HTTPS_SERVER

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.