File: /var/www/ilya/data/www/afish-ka.ru/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.afish-ka.ru$
RewriteRule ^(.*)$ http://www.afish-ka.ru/$1 [NC,R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
php_value session.use_trans_sid 0
php_flag display_errors off
AddType application/x-httpd-php .php .php4 .inc
RewriteCond %{HTTP:X-Purpose} ^preview$
RewriteRule ^(.*) /preview.html