TacTics Posted June 27, 2017 Share Posted June 27, 2017 Как сделать один форум на 2х доменах ? если делать Псевдоним для домена основного то он при входе www.имя.eu переходит на www.имя.lv - а хотелось что бы был адрес тот же .eu на DLE делал в конфиге вместо адрес сайта localhost! а как тут ? у меня не локалка а хостинг! Quote Link to comment Share on other sites More sharing options...
WOLF Posted June 27, 2017 Share Posted June 27, 2017 http://forums.ibresource.ru/topic/45064-forum-na-2-domena/ TacTics 1 Quote Link to comment Share on other sites More sharing options...
TacTics Posted June 27, 2017 Author Share Posted June 27, 2017 $INFO['board_url'] = "http://".$_SERVER["HTTP_HOST"]; попробуем это WOLF, спасибо! Quote Link to comment Share on other sites More sharing options...
TacTics Posted June 27, 2017 Author Share Posted June 27, 2017 при попытке в изменить эту строку 'base_url' => 'https://www.сайт.com/', на эту 'base_url' => 'https://".$_SERVER["HTTP_HOST"]', пошла ошибка Quote Link to comment Share on other sites More sharing options...
TacTics Posted June 28, 2017 Author Share Posted June 28, 2017 так нету не одного решения с base_url ? Quote Link to comment Share on other sites More sharing options...
hawk2012 Posted June 28, 2017 Share Posted June 28, 2017 Во втором домене поставить редирект с сокрытием как вариант, будет показываться второй домен, в GoDaddy такая штука по крайней мере есть. Quote Link to comment Share on other sites More sharing options...
Bonfire Posted June 29, 2017 Share Posted June 29, 2017 Redirect 301 вам в помощь... hawk2012 1 Quote Link to comment Share on other sites More sharing options...
TacTics Posted June 29, 2017 Author Share Posted June 29, 2017 9 часов назад, Bonfire сказал: Redirect 301 вам в помощь... Ты тему нормально читал ? я же написал! что сделал перерегистрацию! когда заходишь по тому домену он его перекидывает на главный домен потому что в conf_global.php указан другой домен! а я хочу что бы он работал как зеркало! оставаясь на этом домене какой ввёл ещё раз говорю я всё сделал как надо! просто если решения в conf_global.php в строке: 'base_url' => 'https://www.сайт.com/', вместо домена можно ли как то заменить имя домена! пример: 'base_url' => 'https://".$_SERVER["HTTP_HOST"]', Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.