ZenphotoThe simpler media website CMS
I am using pages and menu with my zenphoto site.
Within the pages are links to other pages and images that are not in the albums (either in separate directory at the level of albums or in uploads).
I want to move my site, actually I am not moving it but rather making a copy of my site in order to have a place to test changes before making changes to the public site BUT as I understand the procedure it would be the same as a site move on the same server.
Anyways it all works except that all my links to other pages and all my links to images (non-album images say in uploaded) are broken after the move and run setup.
The page references and image references all seem to be direct references using the root of the previous install.
For example my live site is installed at /live then the reference to an image is /live/uploaded/image.gif
When I copy the site it is located at /cpy but even after running setup the references to the images (and other pages) are still to /live
I do have mod_rewrite enabled and all the menu pages are redirected and work correctly on the new site but not things embedded in the pages.
Do I miss something or is this expected.
A related observation, when using mod_rewrite I can insert links to other pages in the tinyMCE editor as /root/pages/pagename but if I use tinyZenpage to insert the link it uses the longform /root/index.php?p=pages&title=pagename
Am I missing something? I have to manually edit all these references after moving the site?
Is there some sort of shorthand for a relative reference I could use to avoid having to edit every page I have created?
For example a link to be something like ../../uploaded/image.gif and a page could be something like ../../pages/pagename
Comments
Links embeded in text content itself are static and don't adjust themselves. If you have static links outside ZP or your site is witin a subfolder of a domain (eg. domain.com/live/) you need to replicate the same structure on your test site to work, too. You should be able to use a subdomain to achieve yourdomain.com/live and test site on subdomain.yourdomain.com/live
/root/pages/pagenameis the rewritten (modrewrite) URL version of/root/index.php?p=pages&title=pagename. Both are relative links because there is no domain included. If modrewrite is enabled both will work and tthe unrewritten will redirect. Naturallay the rewritten URL will not work if modrewrite is not enabled.I don't understand that example. Those are two totally different URLs by Zenphoto means.
excellent - the subdomain is exactly what I was missing.
Works as desired - thanks once again.