.htacces for subdomains

Discussion in 'Apache' started by animixgames, Mar 22, 2008.

  1. #1
    animixgames, Mar 22, 2008 IP
  2. maiahost

    maiahost Guest

    Messages:
    664
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Something like :

    rewriteCond %{HTTP_HOST} !^www\.
    rewriteCond %{HTTP_HOST} ^(.+)\.site\.com
    rewriteRule .* /index.php?catname=%1 [L]

    Should do the trick
     
    maiahost, Mar 23, 2008 IP