Multiple TLDs? .com .net .org

Is it possible to configure zenphoto to run on multiple top level domains (i.e. example.com, example.net example.org)? All my domains are parked on top of one another. However, currently whenever I try to login to the admin side of my installation under anything but the .com (which it was installed on) I get a bunch of warnings involving the security-logger.php:
`
Warning: fopen(/home/public_html/gallery/zp-data/security_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/public_html/gallery/zp-core/zp-extensions/security-logger.php on line 77

Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/public_html/gallery/zp-core/zp-extensions/security-logger.php on line 95

Warning: fclose() expects parameter 1 to be resource, boolean given in /home/public_html/gallery/zp-core/zp-extensions/security-logger.php on line 96

Warning: chmod() [function.chmod]: Operation not permitted in /home/public_html/gallery/zp-core/zp-extensions/security-logger.php on line 97

Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/gallery/zp-core/zp-extensions/security-logger.php:77) in /home/public_html/gallery/zp-core/functions.php on line 1911
`
if however I reenter the url (not refresh the page) I am logged in. I can see my albums but when I click on an image, if it is not already cached, I get an error image:

Error: Cache Directory not writable. make sure /cache permissions are correct.

Is there some sort of configuration file I can change or maybe editing my .htaccess? I don't know, please help.

Comments

  • It should be possible to use .htaccess to map all those domain into one. This is, of course, not a Zenphoto issue.

    The errors you are reproting are file system secruity permissions problems on your installation. Perhaps that is because the there are different rights being applied to the application when you enter from different domains.

    Perhaps someone on the forum can give you a suggestion, but since it really is not a Zenphoto issue you might be better off searching specifically on how to link multiple domains up to the same WEB applications.
  • acrylian Administrator, Developer
    For SEO reasons it is strongly recommended to make one TLD to the main one so all others are redirected anyway if all contain the same site content. Keyword is "duplicate content" here.

    Redirecting via .htaccess is quite easy:
    `
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^.*\.com$ [NC]
    RewriteRule ^(.*)$ http://www..de/$1 [L,R=301]
    `
    Note that www.domain.com and domain.com count as separate TLDs as well! This example redirects both the www and non www one to a www one. You find loads of info about this on the net as well.
Sign In or Register to comment.