<IfModule mod_rewrite.c>
  RewriteEngine On


#1https
#2https
#3https
#4https
#5https


  RewriteRule ^home$ index.php [NC,L]
  RewriteRule ^sobre$ sobre.php [NC,L]
  RewriteRule ^news$ noticias.php [NC,L]
  RewriteRule ^mural$ mural.php [NC,L]
  RewriteRule ^programacao$ programacao.php [NC,L]
  RewriteRule ^eventos$ eventos.php [NC,L]
  RewriteRule ^fotos$ fotos.php [NC,L]
  RewriteRule ^videos$ videos.php [NC,L]
  RewriteRule ^equipe$ equipe.php [NC,L]
  RewriteRule ^contato$ contato.php [NC,L]

  RewriteRule ^news-p-([^-]*)$ noticias.php?page=$1                            
  RewriteRule ^news-([^-]*)+? noticia.php?d=$1 [L]

  RewriteRule ^videos-p-([^-]*)$ videos.php?page=$1                            
  RewriteRule ^videos-([^-]*)+? videos.php?d=$1 [L]

  RewriteRule ^eventos-p-([^-]*)$ eventos.php?page=$1                            
  RewriteRule ^evento-([^-]*)+? evento.php?d=$1 [L]

  RewriteRule ^mural-p-([^-]*)$ mural.php?page=$1                            
  RewriteRule ^mural-([^-]*)+? mural.php?d=$1 [L]

  RewriteRule ^inc/chat/jaxinit.js$ inc/chat/jaxinit.php
  RewriteRule ^admin/includes/tracker.js$ admin/includes/tracker.php
  #RewriteRule ^thumb/(.*)$ /thumb.php?arg=$1 [NC,L,QSA]

</IfModule>
<FilesMatch "\.(css|flv|gif|htm|html|ico|jpe|jpeg|jpg|js|mp3|mp4|png|pdf|swf|txt)$">
  <IfModule mod_expires.c>
    ExpiresActive Off
  </IfModule>
  <IfModule mod_headers.c>
    FileETag None
    Header unset ETag
    Header unset Pragma
    Header unset Cache-Control
    Header unset Last-Modified
    Header set Pragma "no-cache"
    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    Header set Expires "Thu, 1 Jan 1970 00:00:00 GMT"
  </IfModule>
</FilesMatch>

#ErrorDocument 404 "<script>location.href='/'</script>"