ServerAdmin miki@kerem-dodim.co.il #DocumentRoot /var/httpd/kerem-dodim.co.il/www/web/ DocumentRoot /var/httpd/kerem-dodim.co.il/www.last/old-web-site/ ServerName kerem-dodim.mikispc.homelinux.net ServerAlias kd.mikispc.homelinux.net ErrorLog "| /usr/bin/cronolog /var/log/httpd/kerem-dodim.co.il/www/%Y-%m-kerem-dodim.co.il-error_log" #Dont Log Images SetEnvIf Request_URI \.gif$ files-list=gif SetEnvIf Request_URI \.jpg$ files-list=jpg SetEnvIf Request_URI \.png$ files-list=png SetEnvIf Request_URI \.swf$ files-list=swf SetEnvIf Request_URI \.css$ files-list=css LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined CustomLog "| /usr/bin/cronolog /var/log/httpd/kerem-dodim.co.il/www/%Y-%m-kerem-dodim.co.il-access_log" combined env=!files-list DirectoryIndex index.html # direct all variation of FQDN to www.kerem-dodim.co.il RewriteEngine On RewriteLogLevel 2 #RewriteCond %{HTTP_HOST} !^www\.kerem-dodim\.co\.il [NC] #RewriteCond %{HTTP_HOST} !^$ #RewriteRule ^/(.*) http://www.kerem-dodim.co.il/$1 [L,R] #RewriteRule ^/(.*) http://www.cnn.com [L,R] # all files with .something are skipped #RewriteCond %{REQUEST_URI} \..+$ #RewriteCond %{REQUEST_URI} !\.html$ #RewriteRule .* - [L] # the others are redirected to the front web controller RewriteRule ^/(.*)$ index.php [QSA,L] Alias /sf /usr/share/php/data/symfony/web/sf # Options None AllowOverride None order allow,deny Allow from All