hi
have looked and looked, messed with settings but still can't sort it.
chickenwriggle.com on hostmoster. zenphoto installed in zenphoto_cw. htaccess in root of public_html/ correctly causes hits to chickenwriggle.com/ to get zenphoto_cw/index.php. what zenphoto generates for the subsequents links to specific albums always has zenphoto_cw in it and i want to get rid of it.
so the net effect is that instead of the first page having the following links:
http://chickenwriggle.com/zenphoto_cw/jack/i want
http://chickenwriggle.com/jack/have mod_rewrite on in zenphoto options, have the rewrite base set as zenphoto_cw. if i mess with any paths in the zenphoto htaccess i break things, if i mess with any of the web root directories i get a broken website.
any thoughts? yell if more info needed.
cheers
michael
Comments
You have to alias your zenphoto_cw/jack subdirectory as jack in your configuration file.
Which server are you running?
a pedantic need for organisation. there is another zenphoto install for a subdomain running in a sub-directory. i don't want one install in root, one install in sub-directory, i want them to be peers.
re: server
apache 2.2.15
Since you can link a subdomain to a folder directly I don't really understand the conflict.
Zenphoto 1: http://chickenwriggle.com/jack/ in subfolder /jack.
Zenphoto 2 in <subdomain>.chickenwriggle.com in http://chickenwriggle.com/<otherfolder>
Of couse might be that I still don't understand the problem...;-)
i don't want to install into http://chickenwriggle.com/jack, because we just had another son, so i want an album http://chickenwriggle.com/charlie. maybe another one for cats, maybe one for other children's parties etc.
the net effect i want, is as if i had installed into the public_html (the web root on hostmonster setups), but it is actually in a different directory with a .htaccess in the web root translates the requests to the directory that zenphoto is installed in.
this all must work because that is the way my subdomain is configured.
it all works as i have it configured for the first page requested for a session at chickenwriggle.com/ however, the subsequent links that zenphoto generates all have the install directory included in them, as demonstrated in the original post:
http://chickenwriggle.com/zenphoto_cw/jack/
instead of
http://chickenwriggle.com/jack/
if it doesn't make sense i will just end up installing in the root of chickenwriggle.com and be done with the slightly messy directory structure.
cheers
michael
(You might want to review our terminology documentation if you really mean that you want a separate `gallery` for each. If that is the case, you best explain to us why you want such a separarate `gallery` rather than separate `albums` as I doubt we can give you a good answer without that knowledge.)
If you are wanting to point subdomains to each of these, then you are somewhat limited by the browser protocols. Each will need its own installation at whatever level you choose. But realize that .htaccess processing pretty much prohibits you from using both subdomain and a subfolder access to the same gallery.
having one install in root for the main domain, and one install in a sub-directory for subdomain seems the only quick solution.
i still think that there must be a way to:
- follow the directions at http://helpdesk.hostmonster.com/index.php/kb/article/347 titled 'How to host the Primary Domain from a subfolder' to do exactly that
- have zenphoto installed in that subdirectory
- not have zenphoto include the subdirectory in the links that it generates
could my desired solution lie somehwere in the WEBPATH and SERVERPATH variables on zp-config.php? i have fiddled with everyone combination of paths there but only get failed includes.
i appreciate everyone's time. if there isn't a quick solution, something obvious that i have missed, then no stress, i appreciate the great product.
cheers
michael
/ (document root)
/web1 (main - zenphoto, mod_rewrited by .htaccess in root)
/web2
/web3
.htaccess
The best functionality a reached by setting
WEBPATH to absolute url of galery (relative produces wrong relative paths)
SERVERPATH to directory of zenphoto
.htaccess RewriteBase /
But still it is not without malfunctions: http://www.frantiseksidak.com/
What exactyl does not work on that site? Seems to work as expected for me.
WEBPATH empty string ('')
SERVERPATH zenphoto directory
.htaccess RewriteBase /