# Wordpress 目錄權限調整 ###### tags: `Wordpress` `目錄權限` `架站` `網頁` 設定無法看到上層資料夾檔案內容 --- 在最上層的.htaccess新增 Options All -Indexes --- 在httpd.conf下增加Options All -Indexes ``` ex: <Directory "/var/www/html"> Options All -Indexes AllowOverride None Order allow,deny Allow from all </Directory> ``` 設定前: ![S__38944957](https://hackmd.io/_uploads/HJEqNcb10.jpg) 設定後: ![](https://hackmd.io/_uploads/ByPpdFTHn.png) 參考資料: https://dywang.csie.cyut.edu.tw/dywang/security/node49.html