URL problems Please help!

tanktank

Joined: 2005-08-12
Posts: 8
Posted: Mon, 2005-10-24 04:08

Hey all! I need some help!

I just installed G2 and am having url problems. If you go to my gallery:

www.559hangout.com/gallery

it goes to the url:

http://www.tank5559.hostultra.com/gallery/main.php

How can i get it to be:

www.559hangout.com/gallery/main.php ?????

Thank you in advance i have provided my information below:

Gallery version = 2.0.1 core 1.0.0.1
PHP version = 4.3.11 apache
Webserver = Apache
Database = mysql 4.0.26
Toolkits = Exif, Gd
Operating system = FreeBSD server2.hostultra.com 4.11-RELEASE FreeBSD 4.11-RELEASE #0: Thu Se i386
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

 
tanktank

Joined: 2005-08-12
Posts: 8
Posted: Mon, 2005-10-24 04:13

Ok i played with it and found a crack. But it still does not solve my problem.

if you go to:

http://559hangout.com/gallery/main.php

you can browse the gallery thouroughly via www.559hangout.com

I would like my users to be able to go to www.559hangout.com/gallery without being directed to my host.

Thank you again in advance!

=)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-10-24 09:45

talk to your webhosting company administrators and ask why HTTP_HOST or HTTP_X_FORWARDED_SERVER is set to www.tank5559.hostultra.com instead of your subdomain name.

else, you can hack modules/core/classes/GalleryUrlGenerator.class and return your prefered host string instead of HTTP_X_FORWARDED_SERVER or HTTP_HOST.