Freehostia directory problem.
Posted: Sun Nov 18, 2007 11:54 am
Hey, I got this free account with freehosia.com and I'm currently building an iphone game. 
If you go to my game, BlackOut, and look at the css file located '/lib/css/main.css' you'd see several background properties but none of which are applied to the selected elements, at least not the way I intend them to be.
At the moment of writing, I have all my background URI as so: '/images/image-name.png'.
When I look at what file i returned it's "http://bookmarklets.freehostia.com/imag ... e-name.png", but sense my game and all it's contents are located in the directory "/blackout/", I'd assume it to be "http://bookmarklets.freehostia.com/blac ... e-name.png".
So I figured if I added a base element to my head with the attribute href="http://bookmarklets.freehostia.com/blackout/" that it would solve the problem. It didn't, unfortunately.
So I tried getting rid of the first '/' in my background URLs; "/images/image-name.png" to "images/image-name.png". and what that does is returns "http://bookmarklets.freehostia.com/blac ... e-name.png".
Whew... I've ran out of bullets, what should I try next?
So, It has to be my server, duh, no other hosting service acts up like this. I could easily write absolute paths but that wouldn't really be intuitive on the my coding habits; I'd rather get my hosting straighted out, or at least find out the what's causing these issues.
Anyone got any ideas?
I'd so much appreciate them.
Thanks for reading.
If you go to my game, BlackOut, and look at the css file located '/lib/css/main.css' you'd see several background properties but none of which are applied to the selected elements, at least not the way I intend them to be.
At the moment of writing, I have all my background URI as so: '/images/image-name.png'.
When I look at what file i returned it's "http://bookmarklets.freehostia.com/imag ... e-name.png", but sense my game and all it's contents are located in the directory "/blackout/", I'd assume it to be "http://bookmarklets.freehostia.com/blac ... e-name.png".
So I figured if I added a base element to my head with the attribute href="http://bookmarklets.freehostia.com/blackout/" that it would solve the problem. It didn't, unfortunately.
So I tried getting rid of the first '/' in my background URLs; "/images/image-name.png" to "images/image-name.png". and what that does is returns "http://bookmarklets.freehostia.com/blac ... e-name.png".
Whew... I've ran out of bullets, what should I try next?
So, It has to be my server, duh, no other hosting service acts up like this. I could easily write absolute paths but that wouldn't really be intuitive on the my coding habits; I'd rather get my hosting straighted out, or at least find out the what's causing these issues.
Anyone got any ideas?
Thanks for reading.