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.

Delete AutoSSL htaccess website

Discussion in 'Security' started by Zhinto, May 6, 2017.

Tags:
  1. Zhinto

    Zhinto Registered

    Joined:
    May 6, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Rawamangun, SULSEL
    cPanel Access Level:
    Website Owner
    In this line

    Code:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
    RewriteRule . /index.php [L]
    </IfModule>
    What happens, If i delete strike code..?? does my website will error?
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,400
    Likes Received:
    52
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    What strike code you are referring to. can you point to the one you are referring to?
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,037
    Likes Received:
    1,278
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Those lines are utilized to ensure a domain name is validated as part of the AutoSSL validation process. You can remove those entries in favor of the following option under the "Domains" tab in "WHM >> Tweak Settings" if you prefer:

    Use a Global DCV rewrite exclude instead of .htaccess modification (requires Apache 2.4+, EA4)

    Here's the description for this option:

    When you enable this option, Apache adds global rewrite rules to the webserver configuration so that the system does not process additional rewrite rules for DCV filenames. These global rules make it unnecessary for cPanel & WHM to modify each account’s .htaccess file. Note: When you enable this option, the system receives a trivial performance penalty because all of the HTTP requests must be matched against the DCV filename regular expressions.

    Thank you.
     
  4. Zhinto

    Zhinto Registered

    Joined:
    May 6, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Rawamangun, SULSEL
    cPanel Access Level:
    Website Owner
    Sorry the code not affected with strike, i want edit but they said this post as spam
     
  5. Zhinto

    Zhinto Registered

    Joined:
    May 6, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Rawamangun, SULSEL
    cPanel Access Level:
    Website Owner

    Can you show me the code..?? so i dont understand full about htaccess
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,037
    Likes Received:
    1,278
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you elaborate a little more on the specific code you'd like to see?

    Thanks.
     
Loading...

Share This Page