htaccess subdomain

Discussion in 'Apache' started by mohanbabhu, Jun 15, 2009.

  1. #1
    Hi Friends,

    I need some help regarding .htaccess

    http://some.domain.com

    Should call

    http://www.domain.com/user.php?user=some

    Without redirecting means to use rewrite rule...

    I have enabled wildcard DNS support also...

    And I tried to use lot of code but not getting output...

    Plz help me to find a solution
     
    mohanbabhu, Jun 15, 2009 IP
  2. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #2
    I am not sure about exact rewrite rule, but you will also need the following serveralias:

    ServerAlias *.yourwebsite.com

    You will need to add this in virtualhost of your domain in httpd.conf (Apache confoguration file).
     
    kailash, Jun 20, 2009 IP
  3. e2developer

    e2developer Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I am also looking for the solution.
     
    e2developer, Jun 22, 2009 IP
  4. e2developer

    e2developer Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    no body is able to help.
     
    e2developer, Jun 29, 2009 IP
  5. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310