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 …
HTACCESS
-
-
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 …
-
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 …
-
Deny or Allow Certian IP Addresses In some situations, you may want to only allow people with specific IP addresses to access your site (for example, only allowing people using …
-
Enabling SSI Using htaccess Many people want to use SSI, but don’t seem to have the ability to do so with their current web host. You can change that with …