Redirecting a hosted domain name

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

Guest

Hi there, hope somebody can help. My ISP has fp enabled, and so I have a web
page which I have published and I can access it via
http://fp.MYUSERNAME.MYISP.com.

The problem is I have a domain name, hosted by my ISP, and I want to forward
hits to my domain to my fp website. My ISP's help pages aren't very helpful
and I can't get their instructions to work.


Using a FTP client, I have uploaded a file called index.html and a file
called anchor.html (I have copied them below) to my webspace but when I
access my domain name http://www.MYDOMAIN.com all I get is a blank page. If
I view source I can see the index.html code, but the redirect isn't working.

Could anybody give me a link to generic instructions for this kind of
situation, as I am sure that other people know what to do.

Many thanks
Caagh

Index.html:
<HTML>
<HEAD>
<TITLE>Welcome to MYDOMAIN.com</TITLE>
</HEAD>
<FRAMESET ROWS="0,""border=0 bordercolor=white>
<FRAMESET SRC="anchor.html" NAME="anchor" scrolling=no>
<FRAMESET SRC="http://fp.MYUSERNAME.MYISP.com" Name="Main"></FRAMESET>

<!..This page handles visitors who can't view frames..>
<NOFRAMES>
<CENTER>
<h3><font face="Arial, Helvetica, sans-serif">This website requires that
your browser supports frames</font><h3>
</H3></font></h3>
</CENTER>
<P><font face="Arial, Helvetica, sans-serif">The browser you are using is
either unable to handles frames, or frames have been disabled. To view this
site please use a browser that supports frames. Alternatively you can view
the contents of this site
<a href=fp.MYUSERNAME.MYISP.com">here</a></font>
</NOFRAMES>
</HTML>

anchor.html:
<HTML>
<HEAD>
<!-- anchor frame -->
</HEAD>
<BODY>
</BODY>
</HTML>
 
Should be:

<html>

<head>
<title>Welcome to MYDOMAIN.com</title>
</head>

<frameset rows="*">
<frame src="http://fp.MYUSERNAME.MYISP.com" name="Main">
<!..This page handles visitors who can't view frames..>
<noframes>
<body>

<center>
<h3><font face="Arial, Helvetica, sans-serif">This website requires
that your browser supports frames</font></h3>
</center>
<p><font face="Arial, Helvetica, sans-serif">The browser you are using
is either unable to handles frames, or frames have been disabled. To
view this site please use a browser that supports frames. Alternatively
you can view the contents of this site <a
href="http://fp.MYUSERNAME.MYISP.com/">here</a></font></p>

</body>
</noframes>
</frameset>

</html>
 
Hello,

1) If your server is hosted in a Unix environment, htaccess is better as it
does not require any client-side scripting and search engine can follow as
well
http://www.webweaver.nu/html-tips/web-redirection.shtml

2) Otherwise, you can use the meta refresh tag in your index.html (some
people disable this for some reason)
http://en.wikipedia.org/wiki/Meta_refresh

3) Add a JavaScript redirect as well in your index.html (But will not work
for search engines)
http://www.tizag.com/javascriptT/javascriptredirect.php

You can use (2) and (3) together.

--
Singapore Website Design
http://www.bootstrike.com/Webdesign/
Singapore Web Hosting
http://www.bootstrike.com/WinXP/faq.html
Windows XP FAQ
 
Thank you! Your code worked perfectly. Really appreciate the help
Caagh
 
Really appreciate your help Singapore! Ronix's amendments to my html code
worked and so I'm gonna stick with that, but I need to understand this stuff
so I'm gonna read all the links you suggest.
Thanks!
Caagh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top