luizpaulofranz/museuOswaldoAranha/master/dev/portal/.htaccess - Htaccess File

luizpaulofranz/museuOswaldoAranha/master/dev/portal/.htaccess

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  AddCharset utf-8 .js

  # Remove acesso a pasta de sistema.
  RewriteCond %{REQUEST_URI} ^system.*
  RewriteRule ^(.*)$ /index.php?/$1 [L]

  # Checa se o usuário esta acessando arquivos válidos
  # como imagem, css, js, não requisitando o index.php
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond $1 !^(assets|instalador|index.php|robots.txt|favicon.ico|lpf.ico|sitemap.xml)
  RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
  # Se o mod_rewrite não estiver habilitado envia para index.php.
  ErrorDocument 404 /index.php
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache