В моем приложении у меня был ок. 20 субдоменов. Теперь они исчезли, и с ними сертификаты HTTPS. https://domainname.com/shop
My solution:
now for some URLs I have created a middleware which processes the referrer URL and redirects the user to the correct URL.
Note: There are ~20 subdomains which are involved.
if(str_contains(url()->current(), 'obsoletesubdomain.domainname') {
return Redirect::away('https://domainname.com'.request()->getPathInfo());
}
< /code>
Мои вопросы < /h3>
Существует ли лучшее решение для решения проблемы?>
Подробнее здесь: https://stackoverflow.com/questions/796 ... solete-how
Мобильная версия