Forum Moderators: coopster

Message Too Old, No Replies

variable subdomain into an article?

         

firemaster

7:06 am on Oct 11, 2003 (gmt 0)

10+ Year Member



I want the variable off of a random subdomain to be in a text. how would I have the subdomain point to a page where the subdomain the user makes up becomes a variable? where H::P//user.variable.isa.domain-name.com/ and the
$first = 'user' and $last ='variable'
There a few sites that use this, but I don't know if I'd be allowed to post them. I am sure some know of what I am talking about.

thanks a lot,
-Mike

Marcia

7:22 pm on Oct 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>the subdomain point to a page where the subdomain the user makes up becomes a variable?

Are you talking about something like where a user creates a subdomain account for themselves on an existing domain, as it's done in cases with offering member websites where it could be

membersite1.yourdomain.com
membersite2.yourdomain.com
membersite3.yourdomain.com

>>where H::P//user.variable.isa.domain-name.com/
>>the variable off of a random subdomain to be in a text

And then take whatever name they chose as user (membersite) and include that name as a variable in a text file when it's created? Like automatically writing it into a flatfile database on the fly and then possibly outputting it to a list of all the subdomain users?

firemaster

9:11 pm on Oct 11, 2003 (gmt 0)

10+ Year Member



Well let me try again - no registering, just a page generated with the name

I basically think I can get the coding from after random.domain-name.com had been forwarded to the page, but how would I have any domain name that has not be made otherwise pointed? would I use .htaccess or something and like send the user/visitor to the page?

[edited by: Marcia at 9:36 pm (utc) on Oct. 11, 2003]

jamesa

9:15 pm on Oct 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Set up a wildcard in your DNS and then use mod rewrite.

firemaster

9:26 pm on Oct 11, 2003 (gmt 0)

10+ Year Member



I'm sorry, but how would I go upon doing that?
thanks,
-Mike

jamesa

10:15 pm on Oct 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If I could tell you in a paragraph I would, but basically in the DNS configuration you use a * as the name of the subdomain which will match <anything>.yourdomain.tld. Some Google searches should get you there, or an afternoon at the book store ;)

For the mod rewrite stuff, the Apache documentation's is excellent and has many examples. Try this page: [httpd.apache.org...]