# compress all text & html: AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript application/x-javascript application/xhtml+xml application/xml application/rss+xml application/atom+xml #DeflateCompressionLevel 9 # Or, compress certain file types by extension: SetOutputFilter DEFLATE Header set Access-Control-Allow-Origin "*" RewriteEngine On #images RewriteRule ^data/images/([a-z-/]+)/([0-9]{1,2})([0-9]{2})([0-9]{2})/[a-zA-Z0-9-_]+.([a-zA-Z]{3,4})$ /data/images/$1/$2/$3/$2$3$4.$5 [L] RewriteRule ^data/images/([a-z-/]+)/([0-9]{2})([0-9]{2})/[a-zA-Z0-9-_]+.([a-zA-Z]{3,4})$ /data/images/$1/0/$2/$2$3.$4 [L] RewriteRule ^data/images/([a-z-/]+)/([0-9]{1})([0-9]{2})/[a-zA-Z0-9-_]+.([a-zA-Z]{3,4})$ /data/images/$1/0/0$2/$2$3.$4 [L] RewriteRule ^data/images/([a-z-/]+)/([0-9]{1,2})/[a-zA-Z0-9-_]+.([a-zA-Z]{3,4})$ /data/images/$1/0/00/$2.$3 [L] RewriteCond %{QUERY_STRING} ^(w|h)=([0-9]+)(&h=([0-9]+))?(&l=([0-9]+))?(&t=([0-9]+))?(.*)$ RewriteRule ^([a-z0-9-_/]+)/([0-9]+).([a-z]{3,4})$ img.php?path=$1&name=$2&ext=$3&what=%1&w=%2&h=%4&l=%6&t=%8 [L] RewriteCond %{QUERY_STRING} ^s=([0-9]+)(&x1=([0-9]+))?(&x2=([0-9]+))?(&y1=([0-9]+))?(&y2=([0-9]+))?(.*)$ RewriteRule ^([a-z0-9-_/]+)/([0-9]+).([a-z]{3,4})$ img_crop.php?path=$1&name=$2&ext=$3&s=%1&x1=%2&x2=%4&y1=%6&y2=%8 [L] RewriteRule ^data/celebrities/thumb/([a-zA-Z0-9-_]+).([a-zA-Z]{3,4})$ img.php?path=data/celebrities&name=$1&ext=$2&w=%2&h=%4&l=%6&t=%8 [QSA,L] RewriteRule ^data/reporter/thumb/([a-zA-Z0-9-_]+).([a-zA-Z]{3,4})$ img.php?path=data/reporter&name=$1&ext=$2&w=%2&h=%4&l=%6&t=%8 [QSA,L] RewriteRule ^data/topic/thumb/([a-zA-Z0-9-_]+).([a-zA-Z]{3,4})$ img.php?path=data/topic&name=$1&ext=$2&w=%2&h=%4&l=%6&t=%8 [QSA,L] # php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php56” package as the default “PHP” programming language. AddHandler application/x-httpd-ea-php56 .php .php5 .phtml # php -- END cPanel-generated handler, do not edit