Subdomain question

Discussion in 'General' started by Gimly, Mar 6, 2007.

  1. Gimly

    Gimly Member

    Hi All,

    I'am new user on ispconfig and I've question about subdomain, actually I don't want to use this subdomain link version :
    instead of
    I've test an rewrite rules on .htaccess :

    RewriteEngine on
    # redirection des sous-domaines
    RewriteCond %{REQUEST_URI} !^/web/sd
    RewriteCond %{HTTP_HOST} ^([^.]*)\.?[^.]+\.[^.]+$ [NC]
    RewriteCond %1 !^www$ [NC]
    RewriteRule ^(.*)$ /web/sd/%1/$1
    but It doesn't work, my real directory is /var/www/web3/web/sd/ . If anyone have a solution about this or another solution that work.

    Thanks in advance for your answers

    PS : My distrib is Debian Sarge 3.1 with php5.2.1/apache 2.0.54
    PS 2 : Sorry for my english but I'm french xD
  2. Hans

    Hans Moderator ISPConfig Developer

    I think, you can simply add or remove the "www" within the hostname of field within the form of your web within ISPConfig.

    (I hope i understand your question).
  3. Gimly

    Gimly Member

    thanks, but with this rule, I just want to create a subdomain when my customer make an directory in their dir /var/www/web*/web/sd/ without pass by ispconfig panel. The .htaccess function correctly on other web server but not on mine. The rewrite module is ok on my apache2. Why do you think it doesn't work on my server, I've forgot something ?

    Thanks in advance for your answers
    Last edited: Mar 7, 2007
  4. Gimly

    Gimly Member

    no idea ? :rolleyes:
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you tried the solutions from the tipps and tricks forum? Normally it sould be enough to use the same rewrite rule that ISPConfig uses with just [R] at the end and not [L] or [RL]
  6. Gimly

    Gimly Member

    ok thanks for your answers

Share This Page