View Single Post
Old 12th October 2011, 12:23
Croydon Croydon is offline
ISPConfig Developer
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 932
Thanks: 16
Thanked 264 Times in 208 Posts

I don't know if this is really a bug or something weired on my server.

With 3.0.4 Beta 1 and even the current svn from today the redirect functions of subdomains and domain aliases do not work anymore.

I tried to debug it and in the apache2 plugin the rewrite_rules array is correctly filled and sent to tpl system via setLoop().

The master conf section looks like this
HTML Code:
<tmpl_if name="rewrite_enabled">

    RewriteEngine on

<tmpl_if name='seo_redirect_enabled'>

    RewriteCond %{HTTP_HOST} ^<tmpl_var name='seo_redirect_origin_domain'>$ [NC]
    RewriteRule ^(.*)$ http://<tmpl_var name='seo_redirect_target_domain'>/$1 [R=301,L]


<tmpl_loop name="redirects">
    RewriteCond %{HTTP_HOST}   <tmpl_var name='rewrite_domain'>$ [NC]
    RewriteRule   ^/(.*)$ <tmpl_var name='rewrite_target'>$1  <tmpl_var name='rewrite_type'>
The RewriteEngine On entry is correctly put into the vhost file, but the redirects loop puts out nothing.
The SEO rewrite for the main domain works as intended, but no additional redirect rewrite rules.

Edit: It is a fresh install of ispc on debian squeeze, no update.
The domain alias entries are inserted correctly into the vhost file.

Last edited by Croydon; 12th October 2011 at 12:37.
Reply With Quote