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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question About ".htaccess Optimization" feature in cPanel 66

Discussion in 'General Discussion' started by jdstallings, Aug 24, 2017.

  1. jdstallings

    jdstallings Well-Known Member

    Joined:
    Jul 27, 2003
    Messages:
    60
    Likes Received:
    1
    Trophy Points:
    158
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    cPanelMichael... I did not select this as WordPress and other applications put .htaccess files in several directories to lock down people from downloading or seeing directories which are used for configuration, uploads, media, etc.

    So setting this would have caused all the security in place to go away, or am I missing something?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,220
    Likes Received:
    1,376
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The recommended option (and the one used by default on new installations) is:

    Search "Home Directory" and below

    The .htaccess files in your account's subdirectories would still work with this option, as they searched recursively in the /home/$username/ directory and its subdirectories. EX:

    /home/$username/public_html/.htaccess > works
    /home/$username/public_html/123/.htaccess > works
    /home/$username/public_html/123/456/.htaccess > works

    Thank you.
     
Loading...

Share This Page