Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I have created a website and want to mask the URL.
I would like to know how to mask the URL, all pages are JSP's.Any help would be greatly appreciated.
Thankspriti
Just make the "home" page a frameset with a single frame. Whn users click links in the framed page, the content will change but the URL in the browser address window will not.
Be sure to put code in the header of all the pages to check and see that they are being loaded from within the frameset. Just do a search for "javascript break into frames".
Michael J
Report Offensive Follow Up For Removal
Actually I want to do something like:
Mask http://hi.echo.com/Login.jsp to
http://hi.echo.comI do not think that I understand your explanation. Would mind showing me the sample code.
Thanks in advance.
priti
Report Offensive Follow Up For Removal
That is exactly what I am talking about.
You should have a default page that is loaded when people go to http://hi.echo.com (default.htm, index.htm, or something like that).
Make that page a frameset such as (<> replaced with []):
[frameset rows="100%"]
[frame src="start.htm" name="main" frameborder="no"]
[/frameset]Where start.htm (or .jsp) OR login.jsp OR Whatever is the page you want users to see when they hit your site. When you click any links within the framed page, the content will load into the page, but the URL in the address bar will not change. You can see an example of what I mean at www.damato.net.
Michael J
Report Offensive Follow Up For Removal
You might also consider mod_rewrite.
Google it to find out more.
To send sms from your website or application, visit TM4B.
Report Offensive Follow Up For Removal
![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |