Removing autossl rules on htaccess

osamaweb

Registered
Sep 30, 2018
2
0
1
Egypt
cPanel Access Level
Root Administrator
Hello,

I have the autossl rules on my .htaccess file that were added automatically for validation process.
3 days ago, I have switched to EasyApache 4 and then checked for Global DCV Passthrough instead of .htaccess modification option and it was ON by default.
So I have decided to remove the autossl rules from my htaccess files as there is no need for it after turning on the above option.
But after removing the rules, my sites give me internal server error. I don't know why that happen? and how the htaccess rules about validation is still needed while Global DCV Passthrough instead of .htaccess modification option is ON?

Waiting for your reply.

Best Regards.
 
Last edited by a moderator:

osamaweb

Registered
Sep 30, 2018
2
0
1
Egypt
cPanel Access Level
Root Administrator
Hello,
Here is the part I have removed and made break the ssl validation and made my site unalienable:

RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$

That happened as I said while the Global DCV Passthrough instead of .htaccess modification option is ON.

Waiting for your reply.

Thanks.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,266
313
Houston
Hi @osamaweb

I can't see how removing those lines would cause the sites to be unusable though.
Can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


Thanks!