Direct URL to Albums ??

urania

Joined: 2005-11-05
Posts: 27
Posted: Sat, 2014-03-22 07:43

Dears,

I am using Gallery 3.
On the front page, I have three albums.
I would like to know if there is any solution if I want for each album a direct URL different from the main (sub domain) one like:

www.domain.org (main URL)
toto.domain.org (link only to the first albums)
titi.domain.org (link only to the second album)

...

Thx

 
spags

Joined: 2010-03-26
Posts: 120
Posted: Sat, 2014-03-22 10:47

What an interesting idea. Unfortunately I suspect there isn't an easy answer.

I would guess the Apache mod_urlrewrite would have some part in the answer to your question, but I'm the wrong one to ask about how to actually achieve that. However I suspect that there is even more to it than that. For example, if you start at www.domain.org and navigate into the first album, then Gallery will think that is going to be www.domain.org/something (I don't think it would magically change to toto.domain.org). If you wanted it to dynamically change the URL, I think you would need develop a module to perform that album-based redirection.

Hopefully an Apache guru will give you a better idea.