[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

http://gallery.theschaufs.com

and

http://www.thenewmanns.com

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????

----

Gallery URL (optional): www.thenewmanns.com
Gallery version: G2 Beta 1
Webserver (with version): Apache 2.0
Datatabase (with version): MySql
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s): ImageMagic
Operating system: Redhat AS 4
Web browser/version:
G1 version (for migration bugs):

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-03-25 17:06

G2 will build urls based on how it was accessed.. you should make your webserver do a redirect.

 
bradschauf

Joined: 2005-03-01
Posts: 7
Posted: Mon, 2005-03-28 04:45

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?

 
bradschauf

Joined: 2005-03-01
Posts: 7
Posted: Tue, 2005-03-29 04:54

SOLVED
I had not enabled or configured the URL Rewrite module. I enabled and configured it and all is well.