ZenphotoCMS Forum
Removing zephoto from URL - 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: Removing zephoto from URL (/thread-9647.html)



Removing zephoto from URL - nelson - 2012-02-16

After going live with a client site, he decided it wants the URL not showing the zenphoto part. In searches I found the three options are .htaccess, installing in root and point the domain root to the ZP root directory
Found no working example of an .htaccess, where links generated by internal functions (like getGalleryIndexURL) worked.
Reinstall is no option since the gallery (1.8k+ files) has a lot of info in names and descriptions.
Not sure if the web provider allows the change in the mount point.
So, by moving the zenphoto installation to the root (ie. copy/paste of files) would work? or the DB info (ZP not working) will be corrupted since the system path is not consistent with what is stored in DB?

Confused about what to do and would appreciate any input on the way to solve this

Thanks




Removing zephoto from URL - acrylian - 2012-02-16

Yes, don't install Zenphoto in a folder if you don't want the folder in the url. So move the complete install to the root. You then need to either change the htaccess file manually (rewrite base) or re-run setup.

Relinking a domain to that folder would do the same (htaccess change needed as well).




Removing zephoto from URL - nelson - 2012-02-16

Thanks for the prompt answer; by your last sentence, if the domain is linked to the /zenphoto directory, should I modify the .htaccess inside the gallery (/zenphoto/.htaccess) in any way? is that what you meant?




Removing zephoto from URL - acrylian - 2012-02-16

If you install Zenphoto in a folder "zenphoto" the rewrite base is "/zenphoto". If you move it to the root the rewrite base is naturally "/". If you link a domain to the folder you basically do the same by making the folder the root. So the rewrite base is also "/" (if you use several domains you cannot access it via "otherdomain.com/zenphoto" anymore then).




Removing zephoto from URL - nelson - 2012-02-16

thank you acrylian, I thought the .htaccess had to be changed beyond the rewrite base (one single line).
Thanks again