Directories:
find /path/to/directory -type d -exec chmod 755 {} +
Files
find /path/to/directory -type f -exec chmod 644 {} +
Directories:
find /path/to/directory -type d -exec chmod 755 {} +
Files
find /path/to/directory -type f -exec chmod 644 {} +