Redirection

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way redirect a url to an IP address

Domian name: mycompany.com
If you enter www.mycompany.com in IE you end up at the first page of the site
I want to be able to enter in IE www.mycompany.com/remote and end up at an
IP address.
There is no page at the site called remote

Any ideas for a work around??

Thanks
 
You would have to have a page in that location that redirect to site's IP address.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
Thomas said:
You would have to have a page in that location that redirect to
site's IP address.

Doug,
To be precise, set up a page named remote.html like this
<html>
<head>
<title>Redirecting...</title>
<meta http-equiv="refresh" content="2; url=http://www.new.com/new/new.htm">
</head>

<body>
<p>You are being redirected. Please click
<a href="http://www.new.com/new/new.htm">here</a>
if the new page doesn't appear in 2 seconds.</p>
</body>
</html>

Instead of http://....... you may need to put an actual IP address, if that
is what you want e.g. 230.129.46.108 (This is my router's address, so this
address may not do anything if you try it)

You will have to tell people to look for www.mycompany.com/remote.html not
www.mycompany.com/remote as I don't think you can set up a page without a
..html extension (or .htm)

Sometimes, the meta tag may not work, so instead of the tag, you could add
<script> top.location.href="http://www.new.com/new/new.htm"</script>
which has no time delay
 
Thanks,
I have used that, but in this case I'm trying not to have the users add the
..html or .htm tag
Have a great New Year
Regards Doug
 
At the web site, create a folder named "remote" and put the re-directt
page in that folder, but name it as the default document. Depeneding on
your server's setting, it's probably one of these options: default.htm,
default.html, index.hml, index.htm.

Calling this URL:
hhp:://www.mycompany.com/remote

is actaallly looking for the default document at folder "remote"

which is the same as calling this URL:

hhp:://www.mycompany.com/remote/index.html (for index.html as the
defaylt doc)
 
That would not work because anyone just entering the domaion name would not
end up at the website
What I'm trying to do is use the redirect from the website to an intranet IP
address at another location
Users will then only have to remember the mycompany.com/remote
or as the case my be
eg
mycompany.com/syd
mycompnay.com/melb
insead of remembering the individual IP addresses of these sites

I know there is a way of the name servers where the website is hosted to
install a reverses lookups but they say they can't or they will just not do
it for me hoping to get the extra business by having the databases on thier
site.
 
Doug said:
That would not work because anyone just entering the domaion name
would not end up at the website
What I'm trying to do is use the redirect from the website to an
intranet IP address at another location

Is it possible to redirect to an intranet site?

I would have thought that if you want your visitor to see a site, then that
site must be on the internet, not on an intranet site.
Users will then only have to remember the mycompany.com/remote
or as the case my be
eg
mycompany.com/syd
mycompnay.com/melb
insead of remembering the individual IP addresses of these sites

Why not place the stuff you want for Sydney in
mycompany.com.au/syd/index.html (or whatever your default page name is) or
in pages in the same folder?
Ditto for Melbourne.

If you want to redirect to another internet site, then you can do that also.
But it seems likely to me that all of it would/could be stored somehere in
the site mycompany.com.au

Perhaps the storage costs are a factor - dunno !
I know there is a way of the name servers where the website is hosted
to install a reverses lookups but they say they can't or they will
just not do it for me hoping to get the extra business by having the
databases on thier site.

The phrase "reverses lookups" means nothing to me.

I suppose it is the website provider's right to try to keep your business
with them, but can they prevent a redirection? Possibly if they detect it
happening, and they really don't like it, they could terminate your
contract. Read your conditions of service.

P.S. I am no internet expert, even though I was a programmer (in ABS) before
I retired. I am just making suggestions that seem reasonable, but not
knowing your set-up.
 
Your web host would have to create a DNS entry for each pointing to the correct IP.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
Fully aware of the A Record and the DNS reverse lookup thats the best way to
do it.
However it would seem that all I can do in front page is to creat a
hyperlink and then have the uses redirected by clicking it. I thought that
there might be some code that might do this automaticlly not to worry.
Thanks for your help
Doug
 
Ok, have you tried the following for:

mycompany.com/syd

Placing a default page (home page) in the syd folder with a automatic redirection to the IP address
as "p c" indicated?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
Back
Top