Page 1 of 1
Masking URL question
Posted: Sat Sep 17, 2005 9:06 am
by Charles256
Okay. Let me try to explain this as best as I can. Anyone ever played hyperiums or any other online game? Notice how they have a thing of making the URL read the directory no matter what.. example:
http://www.hyperiums.com/servlet
now i click a link on the page called
http://www.hyperiums.com/servlet/some/f ... understand
and it still reads
http://www.hyperiums.com/servlet
how the hell do they do that? Thanks for any ideas.
Posted: Sat Sep 17, 2005 10:17 am
by jayshields
dont really understand what you mean. i know that if you go to your domain control panel you can set it as a web forwarding domain and then choose framed forwarding, framed forwarding to a single page, unframed.... etc, etc.
maybe that is what you are trying to achieve?
Posted: Sat Sep 17, 2005 11:32 am
by Charles256
no. i'm essentially trying to mask the URL. so that no matter what actual page the person is on it still just reads the main domain name.
Posted: Sat Sep 17, 2005 12:12 pm
by shoebappa
Usually Apache mod_rewrite:
http://www.phpfreaks.com/tutorials/23/0.php
I think in the above case it's just the way the java app server works. I'm not a Java person though.
Posted: Sat Sep 17, 2005 12:24 pm
by Charles256
ah.so i'd have to be running me own server.darn. thanks though!

Posted: Sat Sep 17, 2005 12:28 pm
by shoebappa
Sometimes you can use .htaccess files to put mod_rewrite rules in on a shared hosting server. If they're running Apache and allow it.