navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Sub-domain

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Server Issues >> Sub-domain
Page: [1]
 
SerenityNet

 

Posts: 1362
Joined: 6/12/2001
From: Allen, TX, USA
Status: offline

 
Sub-domain - 4/2/2002 20:17:10   
I want to use a third-level domain as a session variable. That is, I would like someone to be able to enter www.anything.serenitynet.net. I would use ASP to capture the "anything" sub-domain value and set it as a session variable. Regardless of the sub-domain value, the visitor would be still be directed to my root directory's page (index.asp).

Of course, right now the visitor would get a "the page cannot be displayed" (Cannot find server or DNS Error) error page.

I've asked and my host (ReadyHosting) will not set up a wildcard subdomain. Nor will anyone else I've asked.

Is anyone aware of a host that will set up a wildcard subdomain? Or does anyone have any other ideas on how I can accomplish this?

(If this should be in the "lounge" forum then please move the post for me.)

Thanks,

Andrew
webmaster@serenitynet.net - But the fruit of the Spirit is love, joy, peace, patience, kindness, goodness, faithfulness, gentleness, and self-control..." Gal. 5:22
SerenityNet

 

Posts: 1362
Joined: 6/12/2001
From: Allen, TX, USA
Status: offline

 
RE: Sub-domain - 4/2/2002 20:30:47   
So I'm replying to my own post (is this considered talking to myself?).

Anyway, the visitor could enter www.serenitynet.net/anything or www.serenitynet.net/anything/ or www.serenitynet.net/anything/somepage.htm This would give them the 404 error page, which I can customize. The 404 error page could strip the "anything" value from the URL, set it as a session variable, then redirect the user to a specific page. It might be slower than a wildcard domain, but I think it would work.

Any feedback?

Anyone willing to help me out with the ASP code? (I've bought the beginning ASP book, but this is beyond what I've learned so far.)

(And if this post needs to be moved to the ASP forum, then please do so.)

Thanks again,
Andrew

Edited by - SerenityNet on 04/04/2002 18:02:29

(in reply to SerenityNet)
neocortex

 

Posts: 24
Joined: 1/14/2002
From: Glasgow United Kingdom
Status: offline

 
RE: Sub-domain - 4/27/2002 3:05:11   
hello,

may say first off, it is very unsual for subdomains to have the www. prefix, however not impossible.

My recommendation would be to develop a script that would parse the first section of the URl (ie. the 'anything' part). Naturally, you'd use the instr (interrogate string) function, followed by the use of left$, mid$ and right$ string manipulation functions.

If you require assitance, i am vailable on MSN messenger and hotmail at :

neocortex2k'at'hotmail.com

NC

PS > remember to replace the 'at' with @

Programming today, is a race between software engineers striving to build bigger and better 'idiot-proof' programs, and the Universe, trying to produce bigger and better idiots....So far, the Universe seems to be winning.

(in reply to SerenityNet)
Page:   [1]

All Forums >> Web Development >> Server Issues >> Sub-domain
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts