miguelllufriu/meteomenorca/master/.htaccess - Htaccess File

miguelllufriu/meteomenorca/master/.htaccess

<Files .htaccess>
  order allow,deny
  deny from all
</Files>
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteCond %{ENV:REDIRECT_STATUS} ^$
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  #Bloqueamos la visualización de archivos y directorios
  Options -Indexes
  #Ignoramos archivos y directorios
  RewriteRule ^(.*)$ /index.php/$1 [L]
  #Redireccionamos
  RewriteCond %{HTTP_HOST} ^meteomenorca.es [NC]
  RewriteRule (.*) http://www.meteomenorca.es/$1 [R=301,L,QSA]
  #Obligamos a navegación segura
  RewriteCond %{HTTPS} off
  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
<IfModule !mod_rewrite.c>
  ErrorDocument 404 /index.php
</IfModule>

On Github License

Files

Download PDF of Htaccess file
ENV, HTTP_HOST, HTTPS, REDIRECT_STATUS, REQUEST_FILENAME, REQUEST_URI

Comments

Apache