Multiple domains, one gallery
Phrustrated
Joined: 2011-05-23
Posts: 5 |
Posted: Fri, 2011-06-10 13:58 |
This is NOT about the "multisite" configuration... it's about having multiple domains pointing to the SAME gallery. The problem is that the gallery at www.foo.com is a false positive on content-blocking databases, so some users can't access it. Since getting a site delisted from these databases is about as easy as cutting down the largest tree in the forest with a herring, I want to be able to point alternative, "disposable" domains at it, so users who find themselves blocked can still access it by changing the domain name. Setting up bar.com to point to the same gallery and creating a ServerAlias for that works up to a point - it is possible to access the gallery via www.bar.com and move downwards through the album tree. The problem is that when using the internal links to move back up the album tree, Gallery2 is generating redirects back to www.foo.com. Sorting this out by .htaccess rules doesn't work... it just means that Gallery2 issues a redirect to foo.com which .htaccess then redirects back to bar.com, and that intermediate redirect, while hidden from the user, is not hidden from the blocking systems. I have searched for solutions to this problem but can't find anything - plenty of stuff about the "multisite" configuration, but nothing about this. Can it be done? |
|
Posts: 8339
try setting the baseUri in config.php(last line) to something like:
$gallery->setConfig('baseUri', 'http://' . $_SERVER["HTTP_HOST"] . '/gallery2/main.php');
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 5
You Sir are a genius. Works beautifully. Thanks!