Question About ".htaccess Optimization" feature in cPanel 66

jdstallings

Well-Known Member
Jul 27, 2003
60
1
158
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
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.