Problems to configure webpath

Hi,

I have running a zenphoto installation in a directory on my server. The url to the installation is something like www.abc.de/xyz/index.php
Furthermore I have domain www.uvw.de pointing to www.abc.de/xyz
I configured webpath to an empty string and everything works fine except that the images can be shown.
The details: On the album page the links go to http://www.uvw.de/index.php?album=test&image=IMGP3710.jpg but when I visit the link this url is resolved to http://www.abc.de/xyz/index.php?album=test&image=IMGP3710.jpg on which I can see some text but no image and no css. The path of the image that is not displayed is set to http://web.abc.de/cache/test/IMGP3710_595.jpg

So how do I have to configure my installation?

Best regards
odif

Comments

  • odif Member
    Hi,

    I have running a zenphoto installation in a directory on my server. The url to the installation is something like www.abc.de/xyz/index.php
    Furthermore I have domain www.uvw.de pointing to www.abc.de/xyz
    I configured webpath to an empty string and everything works fine except that the images can be shown.
    The details: On the album page the links go to http://www.uvw.de/index.php?album=test&image=IMGP3710.jpg but when I visit the link this url is resolved to http://www.abc.de/xyz/index.php?album=test&image=IMGP3710.jpg on which I can see some text but no image and no css. The path of the image that is not displayed is set to http://web.abc.de/cache/test/IMGP3710_595.jpg

    So how do I have to configure my installation?

    Best regards
    odif
  • acrylian Administrator, Developer
    No need to double posts (You did read the message on registering that first posts of new users are moderated?).

    You should try to point both domains to the same folder. Otherwise you confuse Zenphoto that assumes a rewrite base that is either `/`or `/xyz`. Using both is not possible to my knowledge.
  • The nature of mod_rewrite is such that you can have only one domain for your installation. Further, I am not sure what you mean by `Furthermore I have domain www.uvw.de pointing to www.abc.de/xyz`. Domains must point to filesystem locations, not be "shortcuts" to other domains.

    If you want two domains pointing to the same gallery, turn off mod_rewrite.
  • acrylian Administrator, Developer
    It is possible to link domains to folders within other domains if /xyz is one. It is even possible to use two domains for Zenphoto but then you have to redirect the domains via htaccess correctly so one domain is the main domains (the url then changes to that main domain).
  • odif Member
    OK, thanks for the answers. Now I created a subdomain www.abc.de that points to www.abc.de/xyz. Let us call this subdomain xyz.abc.de. uvw.de is a redirect (provided by united domains) to xzy.abc.de. This works much better than the setup I described in my first post. Images and layout are correctly displayed.
    The links on the album pages link to a uvw domain but they get resolved to the abc subdomain. Just give it a try on: Click on any picture on christof.doll.de.com/index.php?album=munchen-amp-umgebung%2Fu-bahnhoefe and see the domain changing. Can I change this behaviour?

    Best regards
    odif
  • acrylian Administrator, Developer
    I don't know what you did here. Note that a redirect via a host's panel is not necessarily the correct htaccess redirection. Just linking both to the same folders is not.
    Do a web search on htaccess domain redirection and search engines/duplicated content.
Sign In or Register to comment.