Domain Address

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
alexislalas
Forum Commoner
Posts: 44
Joined: Sun Feb 19, 2006 10:09 pm

Domain Address

Post by alexislalas »

hi,

a guy at work asked me if theres a way to just show the main address and hide the rest of the directorys and files in the address bar of the browsers.


something like:

http://www.mypage.com/hello.php but just show http://www.mypage.com


can that be done?


thanks
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

without using any additional parameters...short answer is no.

I suppose you could use sessions and determine which page needs to be displayed then redirect back to the root and put the page in the session up...

you could also use frames...but yuck!
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Or you could use AJAX...
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

Hockey wrote:Or you could use AJAX...
didn't think of that and I'm not sure why 8O ...

I didn't eat my wheaties this morning...that's actually probably your best solution.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Actually, the only one who has control over what is displayed in the 'address bar' is *me*.
And no, you (or any webmaster) will ever take that away from *me*.

Here is a bit of motivation why it's 'bad thing (tm)'
http://en.wikipedia.org/wiki/URL
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html (Idempotent Methods)
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Burrito wrote:
Hockey wrote:Or you could use AJAX...
didn't think of that and I'm not sure why 8O ...

I didn't eat my wheaties this morning...that's actually probably your best solution.
It happens...

I do that daily...but thats why I visit this place regularly...

Often you know best solutions...but fail to remember (for whatever reason)...until someone here kicks you in the butt and reminds you :P

Cheers :)
alvinphp
Forum Contributor
Posts: 380
Joined: Wed Sep 21, 2005 11:47 am

Post by alvinphp »

You could use frames and inline frames.
Post Reply