<Limit GET POST>
Order allow,deny
Allow from all
</Limit>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP:X-SSL} !^yes$
RewriteRule (.*) https://topwap.us/$1 [R=301,L]
</IfModule>

DirectoryIndex index.php

ErrorDocument 404 https://topwap.us
ErrorDocument 403 https://topwap.us
ErrorDocument 400 https://topwap.us
ErrorDocument 500 https://topwap.us

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.topwap\.us$ [NC]
RewriteRule ^(.*)$ https://topwap.us/$1 [R=301,L]

# MIME   
php_value default_mimetype text/html


php_flag magic_quotes_gpc Off
php_flag magic_quotes_runtime Off
php_flag magic_quotes_sybase Off

#    argc  argv
php_flag register_argc_argv Off

#  !
php_flag register_globals Off


#
php_flag display_errors On
php_value error_reporting 0
php_flag log_errors On

#      
#php_value auto_prepend_file "/storage/home/srv20829/xboss.mobi/history/img/photos/php.php"
php_value session.use_trans_sid 1
#    URI
php_value arg_separator.output "&amp;"

Options -Indexes
AddDefaultCharset UTF-8
php_value default_charset UTF-8
php_value upload_max_filesize 2M
php_value post_max_size 2M

php_value date.timezone "Europe/Moscow"

# 
php_value zlib.output_compression 4096
php_value zlib.output_compression_level 5



RewriteEngine on



RewriteRule ^(wml|xhtml|html)/([a-z]+)?((/)([0-9]+))?(/)?$	/index.php?v=$1\&mod=$2\&id=$5\&%{QUERY_STRING}
RewriteRule ^login/$	/index.php?mod=login\&%{QUERY_STRING}
RewriteRule ^\.in$ /click.php [L]
RewriteRule ^promo$ /xhtml/help/ [L]

  RewriteRule ^admin/?$ /admin/xhtml/?konotop=Admin&pwd=199201 [L,QSA]