Removing zephoto from URL

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

Comments

  • acrylian Administrator, Developer
    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).
  • 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?
  • acrylian Administrator, Developer
    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).
  • thank you acrylian, I thought the .htaccess had to be changed beyond the rewrite base (one single line).
    Thanks again
Sign In or Register to comment.