Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

BBS: Re: Reload a page using a different URL - - August 28, 1998 at 14:07:24

You are here: irt.org | BBS | Re: Reload a page using a different URL - [This BBS is closed]

Posted by Julian Jacobs on August 28, 1998 at 14:07:24:

In Reply to: Re: Reload a page using a different URL posted by Jason Nugent on August 28, 1998 at 06:01:49:

The page I needed to load can be accessed 2 ways.
What I have found is the following
[script language="JavaScript"]


[!-- Hiding
if (location.href == "http://www.btwebworld.com/pagetrade/test.htm")
{location.href="index.html"}
else {location.href="index.htm"}

// --]


[/script]
Thanks for the comments.

JulianJ

: : What i want to do is:
: : If somebody comes to a page using a URL that does not contain the correect domain name.
: : I want them to be directed to my domain
: : eg
: : browser goes to www.foo.com/my-site
: : I would like the page to reload as
: : www.my-site.com
: : my domain is software hosted and has the same IP address as www.foo.com

: :
: : Thanks

: : JulainJ

: This is server dependent. What you typically need in this case is a redirect on the www.foo.com server which maps the directory /my-site to the address http://www.my-site.com.
: What webserver are you using?

: Jason


Follow-ups:

You are here: irt.org | BBS | Re: Reload a page using a different URL - [This BBS is closed]

©2018 Martin Webb