Tag-Archive for » apache «

All about .htaccess

what is .htaccess?
=> it’s a file located at your server use for control apache activities. usually we place .htaccess file in server root but it’s also possible to locate elsewhere. moreover, .htaccess file help us to rewrite apache behavior. in addition, you can rewrite some variables of php.ini form .htaccess file. regardless of php framework or coding style .htaccess is helpful for all.

have a look my previous tutorial which describe basics of .htaccess file in server and local host.

Well now some advance topics. you can rewriet php.ini upload maximum file size value using the following line of command in your .htaccess file
php_value upload_max_filesize “25M”

and test it from your php script by
echo
ini_get("upload_max_filesize");

.htaccess ReWrite Rules(Short and Very Very useful)

http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html

Category: LAMP  Tags: , ,  Leave a Comment