[thelist] 2 Domain Names, 1 Host?
Jeremy Ashcraft
ashcraft at 13monkeys.com
Wed, 01 Dec 1999 12:26:47 -0600
Yes. I know of 2 ways:
1) Put the following in your .htaccess file(if you are ona UNIX system and some
NT systems):
Redirect / http://anotherdomain/mydirectory
I'm pretty sure that works
2 )You can do that with a HTTP Redirect with a META tag. In your index.html(or
whatever your default doc is) document between the<HEAD> and </HEAD> tags, put
the following code:
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://www.yourdomain.com/yourdir">
HTH
--
Jeremy Ashcraft
web developer/geek
ashcraft@13monkeys.com
http://www.13monkeys.com
Leo Wiedersheim wrote:
> Howdy,
> I know it is possible to have two domain names resolve to the same host.
> However, I am wondering if it is possible to detect which URL a person is
> coming from and redirect them to a certain page on that host. For example,
> I currently have a virtual host with the domain name
> http://www.wiedersheim.com and I've acquired the name ClickTech.com. If
> someone wants to go to wiedersheim.com, I'd like them to go to
> http://www.wiedersheim.com/index.html, if they want to go to
> http://www.clicktech.com, I'd like them to be redirected to something like
> http://www.wiedersheim.com/clicktech/index.html
>
> Is that possible? If so, any hints as to how?
>
> Thanks a bunch.
>
> Leo.
> ~
> Leo P. Wiedersheim, Jr.
> leo@wiedersheim.com
> http://www.Wiedersheim.com
> http://www.CampaignCollectibles.com
>
> _______________________________________________________
> unsubscribe+options: http://lists.evolt.org/mailman/listinfo/thelist
> tip harvester: http://lists.evolt.org/harvest/
> email archive: http://lists.evolt.org/archive/
> http://evolt.org/ Workers of the Web, evolt !