How to create and extract zip, tar, tar.gz and tar.bz2 files from Linux Data compression has been extremely useful to us over the years. Whether its a zip file containing …
October 2011
-
-
Redirect from http to https using htaccess Some case you want that only some of the pages to redirect to https but not all pages. In that case the code …
-
How to Disable magic_quotes_gpc for PHP enabled servers turn off magic_quotes_gpc for PHP enabled servers, add the below code in your htaccess file or php.ini file, <ifmodule mod_php4.c> php_flag magic_quotes_gpc …
-
CHMOD Settings for Various File Types using htaccess This method is great for ensuring the CHMOD settings for various file types. Employ the following rules in the root htaccess file …
-
Block or allow multiple IP addresses on one line Using htaccess Save a little space by blocking multiple IP addresses or ranges on one line. Here are few examples (edit …
-
Send character set and other headers without meta tags # send the language tag and default character set # AddType ‘text/html; charset=UTF-8’ html AddDefaultCharset UTF-8 DefaultLanguage en-US
-
Uploading large files in PHP using .htaccess web servers are configured such a way that a user can only upload the maximum file size of 2MB. So there might be …
-
Prevent Directory Listing using .htaccess What is directory listing ? As we know, most of the website contains “images” folder inside the root folder. If we type “www.somesite.com/images” in the …
-
mod_rewrite and basic examples ModRewrite is a powerful feature of the Apache web server. It provides an easy way to modify/manipulate URLs. As complicated as it sounds a regular webmaster …
-
Mod rewrite PHP to HTML using htaccess how you can rewrite all your PHP pages to HTML using a simple .htaccess rule for better search engine indexing. This is a …