PDA

View Full Version : Redirecting within a domain



computergenius
12-14-2003, 11:57 AM
What is it called, where a domain is a subdomain of another domain?

I have a server, with virtual domains (I think that is what they are called - 100 domains on one server, with one IP address). So I can set up www.mydomain.com on my server, with no problem.

But what is it called, when you add domains like newdomain.mydomain.com ? (Or, perhaps better, www.newdomain.mydomain.com). I can't even ask if this is possible on my server, because I don't know what it is called...

vfaulkner
12-14-2003, 08:01 PM
Pretty sure it still just a sub-domain.
I have also heard the term micro-site, might not be the same.
hth

AlexBel
12-15-2003, 09:12 PM
You can use in Apache

UserDir: The name of the directory that is appended onto a user's home directory if a ~user request is received. Be especially careful to use proper, forward slashes here.
Or going to read topics Redirecting "pointed" domains based on domain name (http://www.webproworld.com/viewtopic.php?t=8308) and .htaccess to block image requests? (http://www.webproworld.com/viewtopic.php?t=8198)

computergenius
12-16-2003, 05:58 AM
Thanks for the input, AlexBel -

The "Redirecting "pointed" domains based on domain name" is the method which I am using at present, but requires separate domain names for each sub-domain.

I couldn't see the relevance of " .htaccess to block image requests" - it is concerned with stopping deep-linking from another site - am I missing something?

UserDir redirects visitors from www.mydomain.com/here to www.mydomain.com/somewhere/else/more/complicated, so doesn't seem to help with my problem - remember, I was trying to figure out how to point www.newdomain.mydomain.com (with or without the www) to another folder within mydomain.com