Can I prevent standalone version?

velo

Joined: 2005-01-26
Posts: 1
Posted: Wed, 2005-01-26 15:14

I've got version 1.5-cvs-b321 of Gallery working well with Mambo 4.5.1a. However, it is still possible to access the standalone version of my gallery. I would like to have gallery redirect users to the mambo embedded version, if possible. That way visitors will be forced to register as a mambo user in order to create albums. This will also provide a consistent interface to Gallery and my website.

Standalone url:
http://www.alankrobertson.com/gallery/

which I want to redirect to:
http://www.alankrobertson.com/index.php?option=com_gallery&Itemid=41

I might be able to do this with a server redirect directive (if my webhost allows it), but I'd rather have Gallery take care of this by knowing it is inside mambo, even if it is accessed with a non-mambo url.

Thanks!

 
Chrillespix

Joined: 2005-03-09
Posts: 9
Posted: Fri, 2005-06-03 19:25

Has anyone come up with a solution to this problem yet?

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2005-06-03 19:31

The only way to do this is to use mod_rewrite. Mambo accesses some Gallery URLs directly, and they don't appear to be technically "inside Mambo."