Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

AutoSSL and HTTP Redirects

Discussion in 'Security' started by Nahoo, Mar 13, 2017.

Tags:
  1. Nahoo

    Nahoo Member

    Joined:
    Oct 7, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    I use the following as the first redirection rule of the .htaccess:

    RewriteCond %{REQUEST_URI} ^/(?:[0-9]+\..+\.cpaneldcv|[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?|\.well-known/acme-challenge/[0-9a-zA-Z_-]+)$
    RewriteRule .* - [L,NC]

    This will force the redirections to stop if there is a file match.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Nahoo,

    I've moved this post to it's own thread. Could you let us know what lead you to creating this rule? Were the default rewrite exclusions added to the .htaccess file not working during the domain validation process?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice