View Full Version : Help with URL and redirects..
FantomOptik
10-12-2002, 01:16 AM
I am wondering if there are any scripts available that will help to "mask" the url address with another so that when the people go to a different page, it always appears as the same domain.
More specifically:
I have a site (call it www.site.com)
When people login, it pushes the login info to another server.
I want to know if it is possible to have the url show "www.site.com" even after they login and are on another server. I want it to appear as though they are still on "www.site.com".
Or is my only alternative to create some frames pages???
Thank you in Advance for any advice you may have
Nightfire
10-12-2002, 01:18 AM
Frames I'm affraid.
FantomOptik
10-12-2002, 01:20 AM
But thanks for taking the time to give me a quick answer!!
whammy
10-12-2002, 01:21 AM
Yeah, that's the only way to keep the same URL in the address bar. You must use frames.
They have their drawbacks as well, though... you might want to do some research on frames before venturing there.
FantomOptik
10-12-2002, 01:22 AM
Really appreciate the fast responses!!!
mhere
10-12-2002, 08:58 PM
no idea how to do that...
but there must be some way for that as I ve got that done on my site..
my site is www.cecos.com
i registered a new domain www.cecos.edu.pk and asked the host to redirect this to cecos.com
now cecos.edu.pk redirects to cecos.com keeping cecos.edu.pk in the address bar.
and all my files are directly available thru this domain. i.e. a file main.html on cecos.com is available as cecos.edu.pk/main.html
cant help!! just wanted to give u an idea
Nightfire
10-13-2002, 04:14 AM
Would've been done by the host configuring the server to do that. Probably got a program to copy all the files from one domain to the other.
web4u
10-15-2002, 08:54 PM
<frameset border="0" rows="100%,*">
<frame name="frame" src="http://yourwebsite.com">
</frameset>
Nightfire
10-15-2002, 08:58 PM
<frameset border="0" rows="1,*">
<frame name="blank" src="http://yourwebsite.com/blank.html" noresize>
<frame name="frame" src="http://yourwebsite.com">
</frameset>
You meant that, yeah?
web4u
10-15-2002, 09:29 PM
Thanks Nightfire,
Well i just put this OnClick:
<a href="3.htm" onClick="parent.frame2.location='4.htm'">
and it opens another page in another frame.
But how can i add more OnClick events to the same link?
I found this code for it:
<script>
function muchoframes()
{
parent.frame1.location='6.htm
parent.frame2.location='7.htm
}
</script>
But it's working...
Can you help me on this?
THANKS!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.