![]() |
setting up multiple sub domains on local
im using windows xp pro
i know how to set a subdomain like --> subdomain.domain.com but how do i create another subdomain like --> sub.subdomain.domain.com ? |
Ehm that isn't possible as far I know. A SUBDOMAIN is a domain UNDER the main domain ... it cannot go sub.sub.sub.sub.sub.domain.com.
Why? w.w.w.domain.com (shitty ass str_replace stuff in the url) is the main domain, with a subdomain www. is replaced by sub. ;-) |
I had a sub sub domain before on my server:
forums.freehostingdomainname.somehost.com heh.. |
Like I sad, as far as I know.
[Parent] => Domain.com [Child] => sub.Doman.com [Infant?!] => sub.sub.Domain.com |
Quote:
|
Quote:
Let me rephrase that. Code:
[Parent] => Domain.com |
You stated that you're using Windows XP Pro, but that is not enough information for us to give you a usable solution. Are you using IIS, Apache or another web server?
As for the domain "children", they're counted in levels usually. For example: Code:
L3 L2 L1com is the first level domain, mydomain is the second level domain and www is the third level (sub)domain. There is no reason why you can't have fourth (fifth, ..., twentieth, nth level subdomains) at all. For example, the following is a perfectly valid domain: http://lets.get.up.to.domain.level.ten.for.talkphp.com/ |
If you are using Apache you can use mod_rewrite. You can create dynamic virtual hosts using mod_vhost_alias. mod_rewrite is probably the easiest. Something like this would work.
Code:
RewriteRule ^([^.]+)\.([^.]+)\.domain\.com(.*) /path/to/files/$2/$1$3Why is it replacing my link with something that I don't want? ... Look at the status bar to see the link. Edit by Salathe: I've fixed your link. There's an option called "Automatically retrieve titles from external links" in the advanced (not quick) reply page. It is automatically enabled, and I'm afraid I can't see an option for users to automatically disable it. It's an annoying "feature" I'd be happy to see the back of. P.S. Sorry for the long edit, I should've just replied. |
| All times are GMT. The time now is 04:21 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0