ZenphotoCMS Forum
album.php as index page - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: album.php as index page (/thread-5139.html)



album.php as index page - ksvendsboe - 2009-05-04

Hi,

I am wondering if there is any way to set the index.php to load an album.php page? For instance, this is currently the root web directory for my site:

http://www.ksvendsboe.com/clients/tasha/

but I want to find a way that it will go directly to:

http://www.ksvendsboe.com/clients/tasha/gallery/

but I can't just set the DNS to point at that directory due to the nature of the site. I am using a modified version of the default ZenPage theme and I have tried to modify the PHP in the main index page, but I haven't been able to find a solution that way. Any advice would be greatly appreciated. I am a total PHP novice, FYI.

Thanks!




album.php as index page - acrylian - 2009-05-05

Well, since you say you are a php novice the easiest would probably be a header() redirect on your theme's index.php. http://www.php.net/manual/en/function.header.php




album.php as index page - ksvendsboe - 2009-05-05

well, that was a nice easy workaround! Thanks - hopefully someday I'll have the knowledge and time to do it properly, but for now that's perfect. Really appreciate the suggestion.