One Gallery, multiple domains

andreeaandrei15

Joined: 2013-01-13
Posts: 1
Posted: Sun, 2013-01-13 16:06

It's about having multiple domains pointing to the SAME gallery. This is NOT about the "multisite" configuration.

The problem is that the gallery at foo 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 bar 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 foo.

Sorting this out by .htaccess rules doesn't work... it just means that Gallery2 issues a redirect to foo which .htaccess then redirects back to bar, 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?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-01-13 17:08

you can easily embed the same gallery in multiple domains as long as they exist in the same filesystem.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2013-01-14 13:30

Decided to put together an example.
Using gallery's Embed API I was able to embed my gallery from suprsidr.com in flashyourweb.com or any other domain on the same server.

Each gallery can use a different theme/layout and notice the URIs generated are true for the domain.
I have an easy form to help and many other samples and tools.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
jerrysandler
jerrysandler's picture

Joined: 2013-02-12
Posts: 1
Posted: Tue, 2013-02-12 18:01

Using Gallery for upcoming release of the corvisa cloud website.

Are you able to edit individual galleries per domain?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-02-13 00:30
Quote:
Are you able to edit individual galleries per domain?

using multisite configuration yes. but that is not the focus of this thread.
Open your own thread if you have further questions regarding your query

-s
________________________________
All New jQuery Minislideshow for G2/G3