AddDefaultCharset utf-8

DirectoryIndex index.php
Options +FollowSymLinks
RewriteEngine on
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f



RewriteRule ^offer.php$ ?act=oferta [L]
RewriteRule ^([0-9]+)$ baner.php?id=$1 [QSA,L]
RewriteRule ^404.php$ ?act=404 [L]

RewriteRule ^agreement/?$ ?act=agreement [L]

RewriteRule ^plan/?$ ?act=plan [L]
RewriteRule ^login/?$ ?act=login [L]
RewriteRule ^account/?$ ?act=account [L]
RewriteRule ^shop/?$ ?act=shop [L]
RewriteRule ^installs/?$ ?act=installs [L]
RewriteRule ^myapps/?$ ?act=myapps [L]
RewriteRule ^statistics/?$ ?act=statistics [L]
RewriteRule ^send/?$ ?act=send [L]
RewriteRule ^faq/?$ ?act=faq [L]
RewriteRule ^order/?$ ?act=order [L]


RewriteRule ^start_app/?$ ?act=start_app [L]
RewriteRule ^spend_app/?$ ?act=spend_app [L]
RewriteRule ^shop_app/?$ ?act=shop_app [L]
RewriteRule ^account_app/?$ ?act=account_app [L]
RewriteRule ^stat_app/?$ ?act=stat_app [L]
RewriteRule ^ads_app/?$ ?act=ads_app [L]

RewriteRule ^add_ad/?$ ?act=add_ad [L]
RewriteRule ^ok/?$ ?act=ok [L]


# www rewrite
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

ErrorDocument 404 /404.php

AddType application/x-httpd-php .js
AddHandler x-httpd-php5 .js

<FilesMatch "\.js$">
SetHandler application/x-httpd-php
</FilesMatch>


