masterross

Well-Known Member
Apr 7, 2004
73
5
158
HTTP redirects seem to be pretty troublesome: specifically, the default cPanel/Comodo provider will fail if it finds a redirect. To address this, we’re implementing logic in 60 to insert mod_redirect exclusions into a virtual host’s .htaccess file when necessary.

You can do this in 58, but it will be a manual process. Here are the exclusions to add in:

For Comodo:
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt$

Insert these lines before every “RewriteRule” directive to ensure that domain control validation (DCV) will avoid redirects. Only the Comodo one should be strictly necessary, but the others are good ideas just in case.
Hi,

I'm on v62 but seems inserting mod_redirect exclusions doesnt work :(

EDIT:

Just found in .htaccess :

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
Order deny,allow
Deny from all
</FilesMatch>

Which blocked access to TXT files
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463