By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,724 Members | 1,707 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,724 IT Pros & Developers. It's quick & easy.

how to do a redirect in HTML ?

P: n/a

I have a simple problem in that I have developed various websites off
of my domain such as:

www.mydomain.com/my-friends-website

I want to be able to have someone register a domain such as

www.somedomain.com and have it point to --www.mydomain.com/my-
friends-website
I guess the site has to be registered through name servers to point
someplace like geocities.com or anyplace free ? What's good for that ?
>From there it can just redirect to my page, but how do you do that in
html ? I have a big thick html book, but did not see redirect listed
in the index.

Is there anyway to do this directly without setting my firends domain
someplace and then redirecting ?

Is it easy to point several domains to the same place ? If I could do
that, perhaps my Rails programs could detect which domain it was
coming from and do the redirects in Rails code which I know how to do
and is easy.

Feb 16 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On 16 Feb 2007 02:11:30 -0800, "surfivor" <su*****@yahoo.comwrote:
>
I have a simple problem in that I have developed various websites off
of my domain such as:

www.mydomain.com/my-friends-website

I want to be able to have someone register a domain such as

www.somedomain.com and have it point to --www.mydomain.com/my-
friends-website
Do you have cPanel and add-on domains enabled on your server ? If so,
it is easy to setup the extra domain name and have it refer to a
directory in your file space.

--
Steven
Feb 16 '07 #2

P: n/a
On Fri, 16 Feb 2007, surfivor wrote:
From there it can just redirect to my page, but how do you do that in
html ? I have a big thick html book, but did not see redirect listed
in the index.
You don't do redirects with HTML.
Read http://www.w3.org/QA/Tips/reback .
Feb 16 '07 #3

P: n/a

Hello

I just use this :

On the page My_label_vin to redirect to lecteur-flux-rss :

<p style="text-align: center;">You will be directed to :<a
href="http://philippe.chappuis.googlepages.com/lecteur-flux-
rss.htm">http://philippe.chappuis.googlepages.com/lecteur-flux-
rss.htm</a></p>

<script language="javascript" type="text/javascript">
window.location="http://philippe.chappuis.googlepages.com/lecteur-flux-
rss.htm";
</script><noscript>Redirection vers http://philippe.chappuis.googlepages...r-flux-rss.htm
la page du lecteur de flux RSS</noscript>

hope this help you

---
http://philippe.chappuis.googlepages.com
---

Feb 17 '07 #4

P: n/a
Dan
On Feb 17, 9:47 am, "prac" <philippe.chapp...@gmail.comwrote:
On the page My_label_vin to redirect to lecteur-flux-rss :

<p style="text-align: center;">You will be directed to :<a
href="http://philippe.chappuis.googlepages.com/lecteur-flux-
rss.htm">http://philippe.chappuis.googlepages.com/lecteur-flux-
rss.htm</a></p>

<script language="javascript" type="text/javascript">
window.location="http://philippe.chappuis.googlepages.com/lecteur-flux-
rss.htm";
</script><noscript>Redirection vershttp://philippe.chappuis.googlepages.com/lecteur-flux-rss.htm
la page du lecteur de flux RSS</noscript>
I'm not sure why the paragraph at the top is in English but the
noscript element content is in French, but anyway, that's a rather
clumsy way to do something that could be done much more elegantly with
a server-side redirect (e.g., with .htaccess in Apache servers). Or,
better yet, get a hosting account that actually lets you host sites
directly under the domains that correspond to them so that no clunky
redirects are needed at all. (Dreamhost currently lets you have
unlimited domains and subdomains, all fully hosted, within a single
account.)

--
Dan

Feb 18 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.