#2 Jul 13, 2017 12:40
Ok, I know that a double post isn't good, but I've solved the "issue" (into "" because for me are an issue, for you I don't know) mentioned in this thread and at the same time partially solved the issue mentioned into the thread http://forums.b2evolution.net/link-to-main-collection-and-about-page-related
now i can see the secondary domain in every collection and at the same time i can see the main domain in every collection witouth make strange redirection or modification at server level, the collection saved with the secondary domain are opened when i put into the browser the secondary domain and at the same time is visible with the correct url into main site, when I log-in like administator no strange redirection or issue with back-office (yes I can edit everithing into back-office from secondary domain).
All of this on my local wamp server, i don't have a real runnable server for test it, cam be usefull if someone can test it on various server type (like shared host with cPanel for example or similar)
How I made it possible, I searched a lot into configuration file for handle the best and easy practice to apply and I found it!!
I have simply added this line of code
$baseurl = 'http://'.$_SERVER['HTTP_HOST'].'/'; after the original that have static link at the main domain (I mantained the original for precaution but probably is unnecessary)
Unique aspect that at the moment i can't change is the about page, because if "contact" and "login" from option can be changed to "current collection" the about page don't have that option so, is a little frustrating but respect to the above hack add a new option to the about configuration is out of my capacity because I don't know where is located the code for it, how is loaded the about page and how replicate and make it unique for every alternative domain.
Just a note for the "contacts" and "login" pages is required the version 6.8.9 of b2e otherwise they will retun an error.