[SOLVED] Gallery base URL not working
bradschauf
Joined: 2005-03-01
Posts: 7 |
Posted: Fri, 2005-03-25 16:45 |
I have two gallery 2 instances and I modified the DirectoryIndex in httpd.conf to include gallery2/main.php so that you can enter gallery.theschaufs.com instead of gallery.theschaufs.com/gallery2/main.php to get to the site. I have done this for both sites. The first site loads correctly, but the second site does not, as the html generated is missing the "gallery2" directory in the paths. For example, the html references "images" instead of "gallery2/images" which is where it is stored on disk (var/www/html/gallery2/images). This is the case for the css as well. Not sure what I did differently with the first gallery. In G2, is there a place where the Gallery base directory is specified???? ---- |
|
Posts: 8601
G2 will build urls based on how it was accessed.. you should make your webserver do a redirect.
Posts: 7
Both of the apache servers are configured the same, with DirectoryIndex pointing to gallery2/main.php... One works when accessing it this way, one does not. Neither are doing redirects, although that is an option.
http://gallery.theschaufs.com (works)
and
http://www.thenewmanns.com ( no worky)
why does one work ( build correct URL's) and the other does not?
Posts: 7
SOLVED
I had not enabled or configured the URL Rewrite module. I enabled and configured it and all is well.