Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you let ONLY the DOMAIN NAME show everytime instead of FULL URL

Status
Not open for further replies.

mb22

Programmer
Joined
Sep 4, 2002
Messages
258
Location
US
I've seen some websites where I guess for security ...when the user opens another window... or is redirected to another webform or window...... only the domain name shows each time like

or

how do you do that?
 
You can do it then the whole site is contained in the default (usually index.php etc) document. This is uncommon... but would yeild the result you see.

More commonly, people create a frameset (even if the frameset contains a 0 pixel high frame that is never used) and load content pages in a frame. This maintains the URL in the address box as since it reflects the correct path to the frameset document (again, usually the default document - index.php etc).

People shy away from the frame technique for many reasons including the inability to bookmark individual pages (although this can be worked around, many choose not to bother -- or don't consider it a problem).

I don't know of any other broad techniques to achieve this result.

Jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top