Aliasdomain redirects

Discussion in 'General' started by Xenocide, Jan 11, 2011.

  1. Xenocide

    Xenocide Member

    Hi Guys,

    I had a bit of a problem whereby alias domains were being redirected properly when you entered domain.com but not www.domain.com even though you had *. selected in auto subdomain.

    I saw it was because the vhost file generated was using:
    Code:
    RewriteCond %{HTTP_HOST}   ^domain.com [NC]
    
    Which means match if it starts "<start_of_line>domain.com". I removed the "hat" character (what is that called?) and now works fine so I updated ./conf/vhost.conf.master thus:

    Code:
    from
    ./conf/vhost.conf.master:    RewriteCond %{HTTP_HOST}   <tmpl_var name='rewrite_domain'> [NC]
    to
    ./conf/vhost.conf.master:    RewriteCond %{HTTP_HOST}   ^<tmpl_var name='rewrite_domain'> [NC]
    
    I think that'd be a good change for future versions? Thoughts?
     
  2. falko

    falko Super Moderator ISPConfig Developer

    I've added this to our bugtracker for revision. :)
     

Share This Page