Print Page | Close Window

subdomain.domain.com

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=4614
Printed Date: 29 March 2026 at 7:39pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: subdomain.domain.com
Posted By: silvaduro
Subject: subdomain.domain.com
Date Posted: 30 July 2003 at 4:48am

Hey,

I've seen many sites with things like http://www.sub.site.com - www.sub.site.com as opposed to http://www.site.com/sub/ - www.site.com/sub/ (not real sites, btw) and I was wondering how you would go about doing that? I'm using an ASP server.

Any help?

Thanks,

silva




Replies:
Posted By: michael
Date Posted: 30 July 2003 at 7:35am
You would have to have access to the name server and setup a subdomain which can point anywhere you want, a folder or even another domain.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: rcalvert
Date Posted: 05 August 2003 at 5:56pm
if your webhost will let you point your domain name at other nameservers you can use zoneedit.com free name server service, very easy to set up for muliple domain aliases


Posted By: pmormr
Date Posted: 07 August 2003 at 9:51am

ask the company from witch you bought your domain name from, normally they provide some type of subdomain service for little or no cost...



-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: eksimba
Date Posted: 07 August 2003 at 2:49pm

You could try to use ASP code to do basically the same thing... If you place the code in the beginning your default web page (i.e. default.asp):

Originally posted by Sample Sample wrote:

<%
dim sname
sname = Request.ServerVariables("SERVER_NAME")
sname = ucase(sname)
 if InStr(sname,"SAMPLE1") <> 0 then
   response.redirect "sample1"
 elseif InStr(sname,"SAMPLE2") <> 0 then
   response.redirect "sample2"
 else response.redirect "welcome.asp"
 end if
%>

This would redirect from "sample1.domain.com" to "domain.com/sample1/"

and "sample2.domain.com" to "domain.com/sample2/"

and everything else "??.domain.com" to "domain.com/welcome.asp"

It's not exactly the same as subdomains, but for simple redirection it works.



-------------
- eric



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net