How do I keep my root URL when browsing


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: How do I keep my root URL when browsing

  1. #1
    Join Date
    Feb 2007
    Posts
    1

    Angry How do I keep my root URL when browsing

    How can I make the address bar display my root URL always and don't display the subfolders or sub pages.

    For example:
    My root URL is http://www.mydomain.com/

    and if I access it and go to my pics page the url would be like this

    http://www.mydomain.com/pics.html

    But the thing is I want to display in the address bar only and always this:

    http://www.mydomain.com/

  2. #2
    Join Date
    Feb 2006
    Location
    Minnesota
    Posts
    33
    Well, this is a little sneaky, but you could build your site using <FRAMES> and only have a single frame. I think this will keep your root URL in the address bar when various pages are loaded into the frame. The downside is that if someone wants to bookmark a particular page within your site, they won't be able to do it (easily).

  3. #3
    Join Date
    Feb 2007
    Location
    Pakistan
    Posts
    5
    Yes, I agree with solution of Frames as suggested by "bschaettle".
    But why do you want to this? This is not a recommended a user friendly way of making your site.

Similar Threads

  1. WebCrawler program not working properly
    By bdjos1 in forum Java
    Replies: 0
    Last Post: 07-05-2006, 10:31 AM
  2. URL loader
    By Upliftmof0 in forum C++
    Replies: 0
    Last Post: 01-05-2006, 04:26 PM
  3. Encypting a URL
    By John Butler in forum ASP.NET
    Replies: 0
    Last Post: 11-26-2002, 03:53 PM
  4. Caching the URL
    By gvt in forum VB Classic
    Replies: 0
    Last Post: 02-07-2001, 08:47 AM
  5. Caching the URL
    By gvt in forum VB Classic
    Replies: 0
    Last Post: 02-07-2001, 08:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center