Koozali.org: home of the SME Server

Forward Virtual Domain

John

Forward Virtual Domain
« on: June 07, 2002, 05:47:33 AM »
I'm not sure if this is a feature or I have to create this in index.php (write code). Please bear with the question.

I would  like to redirect a virtual domain to another area.

eg a.domain.com and b.domain.com

a.domain.com runs the default page whereas when b.domain.com I would like to redirect it to a.domain.com/new_area.

In Windoze I can easily setup in IIS manager to redirect based on name.

At the moment if I select b.domain.com it defaults to a.domain.com.

Thanks.

Geoff Bennion

Re: Forward Virtual Domain
« Reply #1 on: June 12, 2002, 08:20:18 PM »
in the b.domain.com html folder create a file called index.php
and use the php function header to redirect the browser.