Sorry, I need to remind this information:
Read 4 – Allowed to read files
Write 2 – Allowed to write/modify files
eXecute 1 – Read/write/delete/modify/directory
user group world
7 5 5
r+w+x r+x r+x
6 4 4
r+w r r
These 2 sentences assign the security of the folders to 755 and files to 644:
find top/directory -type f -exec chmod 0644 ‘{}’ \;
find top/directory -type d -exec chmod 0755 ‘{}’ \;
I cannot enter these 2 sentences on my Direct Admin because I have not the console available in the hosting 🙁
Interesting reading about .htaccess: http://www.dwdpa.com/content/view/26/73/