just sharing this bc I thought some could find it useful. Feel free to add any you think others could use!
Rewrite a domain alias to subfolder of target site:
	
	
	
		
Disable a testing URL/Alias by rewriting to target domain:
	
	
	
		
Block single IP address:
	
	
	
		
Allow from single IP address:
	
	
	
		
Set timezone:
	
	
	
		
Set character encoding:
	
	
	
		
	
		
			
		
		
	
				
			Rewrite a domain alias to subfolder of target site:
		Code:
	
	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:
		Code:
	
	RewriteCond %{HTTP_HOST} ^[www\.]*testlink.websitesettings.com [NC]
RewriteRule ^(.*) http://www.domain.com/$1 [R=301,NC]Block single IP address:
		Code:
	
	SetEnvIf X-Cluster-Client-Ip ^123.45.67.89 DenyAccess 
Order Allow,Deny 
Deny from env=DenyAccess 
Allow from allAllow from single IP address:
		Code:
	
	SetEnvIf X-Cluster-Client-Ip ^123.45.67.89 allowclient
order deny,allow
deny from all
allow from env=allowclientSet timezone:
		Code:
	
	#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 LOCATIONSet character encoding:
		Code:
	
	AddDefaultCharset iso-8859-1 
	 
	 
 
		
 
 
		
 
 
		 
 
		 
 
		 
 
		 
 
		