Adding a new domain name

Hello, I have installed ZENPHOTO on a Domain Name and now I added another Domain Name, I can only see the first page. The albums gives an error message.

The directory on the webserver is the same.
The working URL is http://domain.com/ZenPhoto
The new is http://newdomain.com/

I can run from the newdomain.com/zp-core/admin.php name, the setup.php gives an error message line 26.

I am new to zenphoto, any help is appreciated.
Thank you

Comments

  • acrylian Administrator, Developer
    You have to decide if you want to run Zenphoto from a folder (http://domain.com/ZenPhoto) or under a domain root (http://domain.com/). You can't have both as that are really different paths.

    You can run under two domains so you have to either move Zenphoto out of the folder of the first or direct the first domain to the folder so it becomes the root.

    Also you should make one domain the main domain for SEO reasons to avoid duplicate content so the additional domains should link to the main domain.

    (Btw, this all is not really Zenphoto specific)
  • Thank you're very much. I am a bit confused. The 2 domain names point to the same folder on the server. In fact, I don't want anymore the http://domain.com/ZenPhoto but I want http://newdomain.com/ both domains are hosted on the same server and uses same folder. Regards.
  • acrylian Administrator, Developer
    If you have an url http://domain.com/ZenPhoto the domain is not pointing to the folder.
    You have to set the folder "ZenPhoto" as the root of that domain, too. You probably can do that somewhere on your webhost interface.
  • Problem solved by editing manually the .htaccess file.
    Thank you,
  • acrylian Administrator, Developer
    Re-running setup also updates the htaccess file. That now fixes newdomain.com. But if you have Zenphoto still accessibley domain.com/ZenPhoto that will now not work anymore. To get the other domain as well you have to make it accessibly by domain.com/
  • Thank you Acrylian, but running //newdomain.com/zp-core/setup.php gives an error message line 26. I still have weired issues with it. But for now I can live with it.

    http://www.newdomain.com/zp-core/admin-options.php?action=saveoptions

    Warning: copy(/home/USERNAME/public_html/FOLDERNAME/cache/.htaccess): failed to open stream: Permission denied in /home/USERNAME/public_html/DOMAINNAME/zp-core/admin-options.php on line 275

    Warning: Cannot modify header information - headers already sent by (output started at /home/USERNAME/public_html/NEWDOMAINNAME/zp-core/admin-options.php:275) in /home/USERNAME/public_html/NEWDOMAINNAME/zp-core/admin-options.php on line 449
  • acrylian Administrator, Developer
    If your site is still set to the `domain.com/zenphoto` folder in the `htaccess` file that will not work. If you want to run it under both domains it must be in the root of both domains.
Sign In or Register to comment.