Archive
Posts Tagged ‘.htaccess’
Save Bandwidth – .htaccess
Paste the following code into your .htaccess file
<ifModule mod_php4.c>
php_value zlib.output_compression 16386
</ifModule>
Enable .htaccess in your server
- Locate and open your httpd.conf in a text editor
- locate this
section. - locate the line that reads ‘ AllowOverride None ‘
- Change it to ‘ AllowOverride All ’
- Restart Apache ’
Block Hitbots – .htaccess
Paste the below given code into your .htaccess file
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?phpcodezz.com.*$ [NC]
RewriteRule .* phpcodez.com [L]
Redirection By Language – .htaccess
Paste the below given code into your .htaccess file
RewriteEngine on
RewriteCond %{HTTP:Accept-Language} (en) [NC]
RewriteRule .* http://en.phpcodez.com [R,L]