MaximePavard/yzisports/master/web/.htaccess
RewriteEngine On
RewriteBase /
# Conditions to redirect nector.ezako.com
RewriteCond %{HTTP_HOST} !^localhost [NC]
RewriteCond %{HTTP_HOST} !^nector.ezako.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/?(.*) http://nector.ezako.com/$1 [R=301,L,NE]
# Conditions for yii path format
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond $1 !^(index.php)
#RewriteRule ^(.+)$ index.php?$1 [PT,L,QSA]
#RewriteRule ^(.*)?*$ index.php/$1 [L,QSA]
# If a directory or a file exists, use the request directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward the request to index.php
RewriteRule . index.php
# Block all index pages.
Options -Indexes
# BEGIN Expire headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType image/gif "access plus 1 week"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
</IfModule>
# END Expire headers
On Github License
Files
Download PDF of Htaccess file