Computing.Net > Forums > Web Development > URL masking

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to get for your free account now!

URL masking

Reply to Message Icon

Name: priti
Date: April 13, 2005 at 21:15:45 Pacific
OS: Win 2000 Prof.
CPU/Ram: P3
Comment:

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.
Thanks

priti


Report Offensive Message For Removal

Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: April 13, 2005 at 21:42:31 Pacific
Reply:

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

Response Number 2
Name: priti
Date: April 13, 2005 at 22:05:59 Pacific
Reply:

Actually I want to do something like:
Mask http://hi.echo.com/Login.jsp to
http://hi.echo.com

I 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

Response Number 3
Name: Michael J (by mjdamato)
Date: April 13, 2005 at 23:15:06 Pacific
Reply:

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

Response Number 4
Name: fambi
Date: April 17, 2005 at 15:57:33 Pacific
Reply:

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
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: URL masking

Java Script break URL mask www.computing.net/answers/webdevel/java-script-break-url-mask/213.html

How to hide true URLs www.computing.net/answers/webdevel/how-to-hide-true-urls/3107.html

Favicon not on redirect url www.computing.net/answers/webdevel/favicon-not-on-redirect-url/3849.html