I might end up redoing all of this anyway, but for now...
My normal .htaccess is about 5kb in size, with 38 RewriteRules. With the Comodo entries, though, my file is nearly 20kb!
I had originally "fixed" it by adding this to the top of the file:
but that doesn't work anymore; I'm not sure when, but it looks like at some point Apache started to only look at the last RewriteEngine command so this turns the entire engine off, regardless of the conditions.
I'd like to keep my .htaccess file smaller and easy to read, so can you guys and gals suggest a way to modify this so that I don't have 15kb of the same RewriteCond over and over?
My normal .htaccess is about 5kb in size, with 38 RewriteRules. With the Comodo entries, though, my file is nearly 20kb!
I had originally "fixed" it by adding this to the top of the file:
Code:
RewriteCond %{REQUEST_URI} ^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} ^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} ^/\.well-known/pki-validation/((?:\ Ballot169)?|[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?)$
RewriteCond %{REQUEST_URI} ^/\.well-known/(?:acme-challenge|cpanel-dcv)/[0-9a-zA-Z_-]+$
RewriteEngine off
I'd like to keep my .htaccess file smaller and easy to read, so can you guys and gals suggest a way to modify this so that I don't have 15kb of the same RewriteCond over and over?