Link to home
Start Free TrialLog in
Avatar of Raftor
Raftor

asked on

hiding exact url

How is it possible to hide your complete url as someone navigates your website.
I want people to be able to navigate my site and not see in the address bar what page exactly they are on, i just want them to see the site url.

Cheers,
Raftor.
Avatar of Batalf
Batalf
Flag of United States of America image

You have to use frameset for that. That will show index.html or just the domain when you navigate.

But it's not recommended.

What if a user finds a page on your site very interesting and wants to add it to his/her favourites? Then they won't be able to it since it's not the page on the address line.

Batalf
Why do you wish to hide the page?
Avatar of bloodredsun
you could use a Controller pattern where your users access just one page but the page forwards to the correct page internally.

e.g.

controller.jsp?action=help  //would forward to help.jsp
controller.jsp?action=contactus  //would forward to contactus.jsp

This is one of the "Presentation Patterns" in web development and is central to Struts and other MVC framework.

But to be honest, asking to hid your URL is like asking how to hide your HTML, practically impossible to anyone with a modicum of knowledge.
Avatar of Tagor
Tagor

You could also use a popup and hide the address bar.
I've answered this for a similar problem.  With .NET there is a function called Server.Transfer()  It's not a redirect but it works like one.  For example, your Default.aspx page Load event on http://www.mydomain.com could use Server.Transfer("http://www.mydomain.com/hidden.aspx") but the URL listed in IE would be http://www.mydomain.com.

Normally a redirect has to round trip to the client browser.  However, Server.Transfer() redirects at the server before sending the response to the client.
I use tedbilly's method.  I used to use frames to do it, but there are some issues with frames that I won't get into.  A popup is a great way, our library does that, but it can get messy.

What Batalf mentioned about people wanting to bookmark your page is also importatant.

You can compromise a bit.  Us directories to create categories of items.  Have your pages in there start with default.aspx and use the server.transfer to hit all the other pages in that directory.  This way the user will see the URL and the directory, but not a webpage.  If they bookmark it, it will lead them to the default page for that directory, where you'd want them to start anyway.

That's what I do anyway.

-d
SOLUTION
Avatar of Samer Chidiac
Samer Chidiac

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial