The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page