Domain, Subdomain on other Domain, 500 Error..

Hi Guys - i got a problem with my Zenphoto..

First i want to say: Thanks for this great Script! I'm using it not since a really early Version and it's really really great!

Now my problem:

I've got a Maindomain - rallye-cars.de

On this Domain, there is a folder called 'rallye'
Here is my Zenphoto installed [version 1.2 [2213]]

I'm using mod_rewrite and the standard .htaccess file for nice URL's.

Now - i got a second domain - rallye-addicted.de

This Domains show's on a folder called 'rallye-addicted/cmsmadesimple'

Now - on my second Domain, there is a Subdomain - called galerie.rallye-addicted.de

This Subdomain shows on the folder 'rallye'

When I open this Domain, my gallery is shown - but when i want to open a album,
an internal Server Error 500 appears.

My Question now:

Why does this happen?
What can i do?

Comments

  • acrylian Administrator, Developer
    Both urls galerie.rallye-addicted.de and rallye-cars.de/rallye do work for me.
  • danis Member
    Please try to open an album on galerie.rallye-addicted.de
    The first page is working - but then..
  • acrylian Administrator, Developer
    Ah, right, sorry, forgot to test that. I guess the htaccess file is confused about the domains. Have no idea right now as I did never try that. Did you try a forum search? Might be that we had something similar before but I don't remember.
  • danis Member
    Yeah, i searched, but nothing similar to find..

    I had no problem with a solution,
    that the path: rallye-cars.de/rallye does not work.
  • Did you run setup on your subdomain install? The problem you are having is definately with mod_rewrite. The rewrite base for the subdomain should be `/` since the subdomain will be pointing directly at the subfolder.
  • danis Member
    I havn't done the Setup on the Subdomain.

    First I had my rallye-cars.de/rallye Installation,
    but now I'd like to change it to galerie.rallye-addicted.de
  • danis Member
    No idea?
  • acrylian Administrator, Developer
    So both domains rallye-addicted.de and rallye-cars.de are on the same webspace? Is rallye-cars.de/rallye and rallye-addicted.de/rallye actually the same folder or are thes domains pointing to different folders?

    If you probably need to link them to the same folder and/or change the subdomain direction on your host's settings. (meaning linking galerie.rallye-addicted.de to rallye-cars.de/rallye.)
  • danis Member
    Hello acrylian,
    the domains are on the same Webspace.

    The Domains rallye-addicted.de/rallye does not exist,
    there is only the path rallye-cars.de/rallye

    The Webspace is structured as following:

    root --> rallye-cars.de
    folder1[/rallye-addicted/cmsmadesimple] --> rallye-addicted.de
    folder2[/rallye] --> The Gallery

    The Subdomain shows on '/rallye' - if i try to enter something like '../rallye' it does not work..
  • acrylian Administrator, Developer
    Ok, then it should be possible to link the subdomain galerie.rallye-addicted.de to the /rallye folder. But you would have to do that on your host's backend... The htaccess file in that case should read /rallye.
  • Had the same problem. I don´t know which one helped.
    1. Run the upgrade script. /zp-core/upgrade.php
    2. Switch to the default template and than back to your custom one.
  • I have the same problem - I installed to sub dir and THEN made the subdir a sub domain...

    so...

    www.lymden-lodge.com\test then became test.lymden-lodge.com - and I get 500 errors on all pages apart fromthe front page.

    If I turn mod_rewrite = OFF then it works.

    If I do an u/g - /zp-core/upgrade.php - the u/g works but the pages still fail unless I have mod_rewite = Off.

    I have yet to try the theme flip.

    David
  • bah.. and trying the theme flip didn't work either.

    I guess having installed to a sub dir and then making it a sub domain really breaks things.

    Off to do a reinstall..!!

    David
  • acrylian Administrator, Developer
    Zenphoto does work on my server in a subdomain that is a subfolder of the webspace root. If the subfolder is /zenphoto and the subdomain poinst directly to that the RewriteBase should be `RewriteBase /`. You of course need to run setup again to update the .htaccess file. The drawback is that `www.yoursite.com/zenphoto` does not work anymore. Either subdomain or directly, not both.
  • Thanks Acrylian - helpful & prompt as ever, I'll try that & revert with what happens.

    Ein frohes Weihnachtsfest und alles Gute zum neuen Jahr!

    David
  • The bottom line on this is that if you "move" the Zenphoto installation you MUST re-run the setup program. It is also not possible to use mod_rewrite and have Zenphoto accessed both from a subdomain and as a folder within the main domain. Mod rewrite just does not support that as you can define only one `rewrite base`.
  • Thanks Guys.

    I can confirm that this all works fine as you say.

    So what I did was:

    1) set up a sub domain. (http://toybox.lymden-lodge.com/ => http://www.lymden-lodge.com/dev-1)

    2) ensure mod_rewrite = ON

    3) hand edit .htaccess to be '/' and NOT '/dev-1'

    4) run http://toybox.lymden-lodge.com/zp-core/upgrade.php

    End result?

    All works fine!

    So it is possible to install to a sub dir and then 'migrate' to a sub domain with out any problems.

    Thanks to all for their help.

    brgd

    David
Sign In or Register to comment.