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!

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,864
    Likes Received:
    89
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    What strike code you are referring to. can you point to the one you are referring to?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

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

    Thanks.
     
    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