My current system is:
· CentOS 6.6
· Drupal 7.43
· Our document root is /home/csales/public_html
· I have created the directories /home/csales/public_html/.well-known/acme-challenge
· I have edited the .htaccess in /home/csales/public_html with the following rewrite rules (the Rewrite Module is ON):
RewriteCond %{HTTP_HOST} ^.*$
RewriteCond %{REQUEST_URI} !^/[0-9]+…+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?:\ Comodo\ DCV)?$
RewriteRule ^.well-known/acme-challenge$ “http://dcv.akamai.com/.well-known/acme-challenge/” [R=301,L]
· I have also attempted to use the actual key/token at end of the redirect, with no success.
My assumption is that Drupal is not processing the redirect correctly, which is why we see 404 errors, instead of 301. One thing that I can think of, is that Drupal will not allow access to a directory beginning with “.”. However, I do not see that referenced in my .htaccess anywhere.