AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript
#FastCGI
AddHandler fcgid-script .fcgi
RewriteEngine On
#Drop WWW Prefix
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.fayaa\.com$ [NC]
RewriteRule ^(.*)$ http://fayaa.com/$1 [L,R=301]
#Static Files
RewriteBase /
RewriteRule ^(static/.*)$ - [L]
RewriteRule ^(web/.*)$ - [L]
RewriteRule ^(bbs/.*)$ - [L]
#Django FastCGI Launch
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ t.fcgi/$1 [QSA,L]
#Sub Domains
RewriteCond %{HTTP_HOST} ^code.fayaa.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.code.fayaa.com$
RewriteRule ^(.*)$ "http\:\/\/www\.fayaa\.com\/code\/" [R=301,L]