I have a sequence of rewrite rules in my httpd.conf as follows:
RewriteCond Condition#1
RewriteRule Rule#1
RewriteCond Condition#2
RewriteRule Rule#2
However, whenever cpanel rebuilds the httpd.conf file, it groups all of the rewritecond and rewrite rules together, effectively breaking their functionality:
RewriteCond Condition#1
RewriteCond Condition#2
RewriteRule Rule#1
RewriteRule Rule#2
Unless I'm overlooking something, this appears to be a MAJOR BUG. In my case, it's so bad that the rewrite rules create an infinite redirect and make the domain inaccessible until I correct the rewrite ordering.
Please clarify if I am doing something wrong. For now I just avoid having cpanel rebuild the apache conf file, and just use the distiller followed by an httpd restart, but sometimes having cpanel rebuild the conf file is unavoidable, so I always have to keep a httpd.conf backup.
RewriteCond Condition#1
RewriteRule Rule#1
RewriteCond Condition#2
RewriteRule Rule#2
However, whenever cpanel rebuilds the httpd.conf file, it groups all of the rewritecond and rewrite rules together, effectively breaking their functionality:
RewriteCond Condition#1
RewriteCond Condition#2
RewriteRule Rule#1
RewriteRule Rule#2
Unless I'm overlooking something, this appears to be a MAJOR BUG. In my case, it's so bad that the rewrite rules create an infinite redirect and make the domain inaccessible until I correct the rewrite ordering.
Please clarify if I am doing something wrong. For now I just avoid having cpanel rebuild the apache conf file, and just use the distiller followed by an httpd restart, but sometimes having cpanel rebuild the conf file is unavoidable, so I always have to keep a httpd.conf backup.