.htaccess is a configuration file for use on web servers running the Apache Web Server software. When a .htaccess file is placed in a directory which is in turn ‘loaded via the Apache Web Server’, then the .htaccess file is detected and executed by the Apache Web Server software. These .htaccess files can be used to alter the configuration of the Apache Web Server software to enable/disable additional functionality and features that the Apache Web Server software has to offer. These facilities include basic redirect functionality, for instance if a 404 file not found error occurs, or for more advanced functions such as content password protection or image hot link prevention.
How to change your server time zone using .htaccess or php.ini?
Category: General, Web ProgrammingTags: .htaccess, How to, php.ini, server time, time zone, timezone
December 14th, 2009
If you are hosting in a different time zone and would like to change the server’s time zone please do the following:
Disabling mod_security on your account
Category: General, Web ProgrammingTags: .htaccess, disable, How to, ModSecurity, mod_security, php.ini
December 6th, 2009
ModSecurity is a web application firewall (WAF). With over 70% of attacks now carried out over the web application level, organisations need all the help they can get in making their systems secure. WAFs are deployed to establish an increased external security layer to detect and/or prevent attacks before they reach web applications. ModSecurity provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring and real-time analysis with little or no changes to existing infrastructure. Therefore, for obvious reasons, many hosts have this module compiled.
ModSecurity is a very useful module. However with improper configuration this can make your website/script not working at all. To check if ModSecurity is installed please open your PHPInfo, search for mod_security, if you see mod_security, that means ModSecurity is installed.
Increasing your PHP upload file size limit
Category: General, Web ProgrammingTags: .htaccess, file size, increase, php.ini, upload, upload_max_filesize
December 5th, 2009
Most servers have the PHP upload file size limit set to 2M, which means the maximum size of file you can upload using your php script is 2mb only. To increase the limit, please do the following:









