DirectoryIndex home.php index.php

AddDefaultCharset UTF-8

RewriteEngine On

# =========== Configuracoes Default =========== #
RewriteCond %{REQUEST_FILENAME} !^(.+)\.(css|js|xml|swf)$
RewriteCond %{REQUEST_FILENAME} !^(.+)\.(jpg|png|gif)$
RewriteCond %{REQUEST_FILENAME} !/php/acoes.php
RewriteCond %{REQUEST_FILENAME} !/js/Jplayer.swf
RewriteCond %{REQUEST_FILENAME} !/xml
RewriteCond %{REQUEST_FILENAME} !/css
RewriteCond %{REQUEST_FILENAME} !/img
RewriteCond %{REQUEST_FILENAME} !/inc
RewriteCond %{REQUEST_FILENAME} !/js
RewriteCond %{REQUEST_FILENAME} !/php
RewriteCond %{REQUEST_FILENAME} !/sgr
RewriteCond %{REQUEST_FILENAME} !/swf
RewriteCond %{REQUEST_FILENAME} !favicon.ico
RewriteCond %{REQUEST_FILENAME} !aovivo.php
RewriteCond %{REQUEST_FILENAME} !robots.txt
RewriteCond %{REQUEST_FILENAME} !ror.xml
RewriteCond %{REQUEST_FILENAME} !sitemap.xml
RewriteCond %{REQUEST_FILENAME} !sitemap.xml.gz
RewriteCond %{REQUEST_FILENAME} !player.php
RewriteCond %{REQUEST_FILENAME} !home.php

#O q estiverem dentro dos parenteses sao as variaveis
RewriteRule ^(.+)\/?([0-9]*)\/?$ php/index.php

<IfModule mod_expires.c>
	<FilesMatch "\.(ico|gif|jpg|jpeg|png|js|css)$">
		ExpiresActive On
		ExpiresDefault "access plus 30 days"
		FileETag None
	</FilesMatch>
	<FilesMatch "\.(xml|php)$">
		ExpiresActive On
		ExpiresDefault "access plus 5 minutes"
		FileETag None
	</FilesMatch>
</IfModule>

<IfModule mod_setenvif.c>
	<IfModule mod_headers.c>
		BrowserMatch MSIE ie
		Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
	</IfModule>
</IfModule>

# AddType TYPE/SUBTYPE EXTENSION
AddType audio/mpeg mp3
AddType audio/mp4 m4a
AddType audio/ogg ogg
AddType audio/ogg oga
AddType audio/webm webma
AddType audio/wav wav


IndexIgnore *



