Rewrite a domain alias to subfolder of target site:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^subdomain.domain.com [NC]
RewriteCond %{REQUEST_URI} !^/subdomain/.*
RewriteRule ^(.*) /subdomain/$1 [L]
Disable a testing URL/Alias by rewriting to target domain:
RewriteCond %{HTTP_HOST} ^[www\.]*testlink.websitesettings.com [NC]
RewriteRule ^(.*) http://www.domain.com/$1 [R=301,NC]
Block single IP address:
SetEnvIf X-Cluster-Client-Ip ^123.45.67.89 DenyAccess
Order Allow,Deny
Deny from env=DenyAccess
Allow from all
Allow from single IP address:
SetEnvIf X-Cluster-Client-Ip ^123.45.67.89 allowclient
order deny,allow
deny from all
allow from env=allowclient
Set timezone:
#Replace LOCATION with valid timezone from the reference below
#Time Zone List: http://www.php.net/manual/en/timezones.php
#SET time_zone = timezone (mysql)
SetEnv TZ LOCATION
Set character encoding:
AddDefaultCharset iso-8859-1

2,938 2 38