Penguination Project


Htaccess automatic CHMOD tutorial

Sometimes we should ensure that particular files chmod configuration is configured properly, and if we are not sure we can simply use .htaccess for proper auto configuration, for example you have some file config.ini and it’s chmod should be 755, and if you have 200 files like config.ini in lots of directories ? 

Here is the .htaccess solution :

chmod .htaccess files 644
chmod pl files 755

chmod ini files 755

………

This htaccess method could be used for any extension. 

Good luck.

Post Metadata

Date
June 20th, 2009

Author
admin

Category


Leave a Reply