Are wildcards the way to go?

Discussion in 'Apache' started by Chippie, Aug 9, 2008.

  1. #1
    Hello,

    I have a classified ads website and I want to set it up with "I think" wildcard sub domains and need some direction.

    Here is what I would like to do.

    http://az.classifiedsite.com for Arizona
    http://ca.classifiedsite.com for California and so on.

    Rather than place the script in each sub domain I wanted to run the classified site from only one script in a master directory.
    I don't want to have 50 versions of the script for maintenance reasons.

    One other thing. I want to have 50 databases, one for each state.

    I would really appreciate some ideas of how I might be able to do this.

    Thanks in advance

    Chippie
     
    Chippie, Aug 9, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    jayshah, Aug 11, 2008 IP
  3. Chippie

    Chippie Peon

    Messages:
    65
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi Jay,

    Unfortunately not, the script just offers a basic search of title and description, it is not set up as Cities or States.

    However we were in contact with the developer yesterday to see if we could pay to
    have the search module expanded so we could only show ads in a particular State.
    We might be getting this. If we do then it would make things much easier.

    Chippie
     
    Chippie, Aug 11, 2008 IP
  4. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #4
    That would benefit you greatly, as then you can rewrite all subdomains to the query string, and you're done :)

    Saves you having 50 Databases.

    Jay
     
    jayshah, Aug 11, 2008 IP