Hello,
I have many RewriteRule in my .htaccess file. According to the documentation, I have to add the following code before each RewriteRule:
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
For me, it looks duplications. Can I set AutoSSL off, remove all code above before each RewriteRule and add the following code after "RewriteBase /" ? :
RewriteCond %{REQUEST_URI} ^/[A-F0-9]{32}\.txt$ [OR]
RewriteCond %{REQUEST_URI} ^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule .* - [L]
Pay attentions, I removed ! (NOT), added [OR] and RewriteRule.
Am I missing something? Or my idea will work without any problems?
Regards,
Valery.
I have many RewriteRule in my .htaccess file. According to the documentation, I have to add the following code before each RewriteRule:
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
For me, it looks duplications. Can I set AutoSSL off, remove all code above before each RewriteRule and add the following code after "RewriteBase /" ? :
RewriteCond %{REQUEST_URI} ^/[A-F0-9]{32}\.txt$ [OR]
RewriteCond %{REQUEST_URI} ^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule .* - [L]
Pay attentions, I removed ! (NOT), added [OR] and RewriteRule.
Am I missing something? Or my idea will work without any problems?
Regards,
Valery.