Creating Multiple Subdomains

Discussion in 'Search Engine Optimization' started by datamynur, Dec 21, 2007.

  1. #1
    Ok we have a site that we are building out that is a niche site with a massive database of 3 million records...The records are specific to each city, state and zip... Like citysearch I want to be able to have each cities content outputted to subdomains and published on our server so they are crawled....

    like if you just do a search for citysearch on google or check its index pages or even backlinks it pulls something like 53 million results and when you look at them they are all "sandiego.citysearch" or "tampa.citysearch" or "florida.citysearch" etc....

    My question is, how do I create all those sub domains automatically? they obviously didnt manually create 52 million sub domains... also there are other companies that are rather small that have done this for all 19K cities in the US and I know for sure they would never have been able to create that many...

    Please help. :confused:
     
    datamynur, Dec 21, 2007 IP
  2. datamynur

    datamynur Guest

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Please help!!!!

    does anyone have any ideas? I cant for the life of me find any articles on how to do this....
     
    datamynur, Dec 21, 2007 IP
  3. sunnyverma1984

    sunnyverma1984 Well-Known Member

    Messages:
    342
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    120
    #3
    you can do this by create virtual subdomains using mod rewrite
     
    sunnyverma1984, Dec 21, 2007 IP
  4. datamynur

    datamynur Guest

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    what is a virtual sub domain? Is that what citysearch is doing? and how can I fond out more about this.... we are running windows servers with sql.

    thanks so much!
     
    datamynur, Dec 21, 2007 IP
  5. datamynur

    datamynur Guest

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I just looked into mod rewrite and it appears to be if you have a subdomain like something.domain.com and you want the traffic to goto mydomain.com/something

    If that is the case I suppose that is fine but how do I generate a subdomain for every city (19,000 something cities) in my database without creating them manually.... so I would have the records for each city on thier own page and be indexable by search engines....
     
    datamynur, Dec 21, 2007 IP
  6. tekteker

    tekteker Peon

    Messages:
    476
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #6
    my co-location server is using an ASP based script. with that script i can create subdomains easyly.
    sub-domain creation is only a few code.
    if you can find that kind of a script, than you modify it.
    you must get the subdomain keyword from sql and loop script till the end.
    very easy.
     
    tekteker, Dec 21, 2007 IP
  7. datamynur

    datamynur Guest

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    would you happen to know where I could get one like yours??? we run windows, the sites in asp and dotNET and we have sql....
     
    datamynur, Dec 21, 2007 IP
  8. datamynur

    datamynur Guest

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Im still researching this and I cant seem to find a script for it.... can someone help, please. thanks!
     
    datamynur, Dec 22, 2007 IP
  9. datamynur

    datamynur Guest

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    tekteker, can you let me know where to get that script? or does anyone else know about where to get a script like that?
     
    datamynur, Dec 23, 2007 IP