kisoselva/cdf/master/www/.htaccess - Htaccess File

kisoselva/cdf/master/www/.htaccess

SetEnv SHORT_OPEN_TAGS 0
SetEnv REGISTER_GLOBALS 0
SetEnv MAGIC_QUOTES 0
SetEnv SESSION_AUTOSTART 0
SetEnv ZEND_OPTIMIZER 1
SetEnv PHP_VER 5_4
SetEnv SESSION_USE_TRANS_SID 0

<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On

# Default directive
# ExpiresDefault "access plus 1 month"

# My favicon
ExpiresByType image/x-icon "access plus 1 year"

# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
</IfModule>

# Compression
# Activer le filtre
SetOutputFilter DEFLATE

# Certains navigateurs ont des problèmes avec gzip, c'est pourquoi nous faisons des exceptions
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html

# Les images n'ont pas besoin d'êtres compressées puisqu'elles le sont déjà (jpg, gif...)
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary

Header append vary "User-Agent"

RewriteEngine On

RewriteBase /

RewriteCond %{SERVER_NAME} !^127.0.0.1$ [NC]
RewriteCond %{SERVER_NAME} !^localhost$ [NC]
RewriteCond %{SERVER_NAME} !^192.168.1.2$ [NC]
RewriteCond %{SERVER_NAME} !^192.168.1.3$ [NC]
RewriteCond %{SERVER_NAME} !^192.168.1.4$ [NC]
RewriteCond %{SERVER_NAME} !^192.168.1.7$ [NC]
RewriteCond %{HTTP_HOST}   !^jikiwi.com$ [NC]
RewriteRule ^(.*)$ http://jikiwi.com/$1 [R=301,L,QSA]

RewriteRule ^results/$ results [R=301,L]
RewriteRule ^agenda/ / [R=301,L]

RewriteRule ^Jojo / [R=301,L]
RewriteRule ^Fernando / [R=301,L]
RewriteRule ^event/ / [R=301,L]
RewriteRule ^places/ / [R=301,L]
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/$ / [R=301,L]

RewriteRule ^s/([A-Za-z0-9-_]+)/$ /s/$1 [R=301,L]
RewriteRule ^s/([0-9]+)$ / [R=301,L]
RewriteRule ^s/amical$ / [R=301,L]

RewriteRule ^category/([A-Za-z0-9-_]+)/matchs/previous$ /category/$1/matchs/results [R=301,L]
RewriteRule ^category/([A-Za-z0-9-_]+)/2012-2013/matchs$ /category/$1/matchs/results [R=301,L]                          # category/national/2012-2013/matchs
RewriteRule ^category/([A-Za-z0-9-_]+)/2012-2013/matchs/previous$ /category/$1/matchs/results [R=301,L]                 # category/national/2012-2013/matchs/previous
RewriteRule ^category/([A-Za-z0-9-_]+)/2012-2013/matchs/next$ /category/$1/matchs/next [R=301,L]                        # category/national/2012-2013/matchs/next
RewriteRule ^category/([A-Za-z0-9-_]+)/2013-2014/matchs$ /category/$1/matchs/results [R=301,L]                          # category/national/2013-2014/matchs
RewriteRule ^category/([A-Za-z0-9-_]+)/2013-2014/matchs/previous$ /category/$1/matchs/results [R=301,L]                 # category/national/2013-2014/matchs/previous
RewriteRule ^category/([A-Za-z0-9-_]+)/2013-2014/matchs/next$ /category/$1/matchs/next [R=301,L]                        # category/national/2013-2014/matchs/next
RewriteRule ^category/([A-Za-z0-9-_]+)/clubs$ /category/$1/2013-2014/clubs [R=301,L]                                    # category/national/clubs
RewriteRule ^category/([A-Za-z0-9-_]+)/agenda/([0-9]{4})/([0-9]{2})$ /category/$1 [R=301,L]                             # category/national/agenda/2012/02
RewriteRule ^category/([A-Za-z0-9-_]+)/agenda/([0-9]{4})/([0-9]{2})/([0-9]{2})$ /category/$1 [R=301,L]                  # category/national/agenda/2012/02/01
RewriteRule ^categorie/([A-Za-z0-9-_]+)/agenda/([0-9]{4})/([0-9]{2})$ /category/$1 [R=301,L]                            # categorie/national/agenda/2012/02
RewriteRule ^categorie/([A-Za-z0-9-_]+)/agenda/([0-9]{4})/([0-9]{2})/([0-9]{2})$ /category/$1 [R=301,L]                 # categorie/national/agenda/2012/02/01

RewriteRule ^competition/([A-Za-z0-9-_]+)/rank/([0-9]+)$ /competition/$2/rank [R=301,L]                                 # competition/jupiler-pro-league/rank/16
RewriteRule ^competition/([A-Za-z0-9-_]+)/agenda/([0-9]{4})/([0-9]{2})$ /competition/$1 [R=301,L]                       # competition/jupiler-pro-league/agenda/2012/02
RewriteRule ^competition/([A-Za-z0-9-_]+)/agenda/([0-9]{4})/([0-9]{2})/([0-9]{2})$ /competition/$1 [R=301,L]            # competition/jupiler-pro-league/agenda/2012/02/01
RewriteRule ^competition/([A-Za-z0-9-_]+)/2013-2014/rank$ /competition/$1/rank [R=301,L]                                # competition/jupiler-pro-league/2013-2014/rank
RewriteRule ^competition/([A-Za-z0-9-_]+)/2012-2013/rank$ /competition/$1/rank [R=301,L]                                # competition/jupiler-pro-league/2012-2013/rank
RewriteRule ^competition/([A-Za-z0-9-_]+)/2013-2014/clubs$ /competition/$1/clubs [R=301,L]                              # competition/jupiler-pro-league/2013-2014/clubs
RewriteRule ^competition/([A-Za-z0-9-_]+)/2012-2013/clubs$ /competition/$1/clubs [R=301,L]                              # competition/jupiler-pro-league/2012-2013/clubs
RewriteRule ^competition/([A-Za-z0-9-_]+)/2013-2014/matchs$ /competition/$1/matchs [R=301,L]                            # competition/jupiler-pro-league/2013-2014/matchs
RewriteRule ^competition/([A-Za-z0-9-_]+)/2012-2013/matchs$ /competition/$1/matchs [R=301,L]                            # competition/jupiler-pro-league/2012-2013/matchs
RewriteRule ^competition/([A-Za-z0-9-_]+)/2013-2014/matchs/next$ /competition/$1/matchs/next [R=301,L]                  # competition/jupiler-pro-league/2013-2014/matchs/next
RewriteRule ^competition/([A-Za-z0-9-_]+)/2012-2013/matchs/next$ /competition/$1/matchs/next [R=301,L]                  # competition/jupiler-pro-league/2012-2013/matchs/next
RewriteRule ^competition/([A-Za-z0-9-_]+)/2013-2014/matchs/previous$ /competition/$1/matchs/previous [R=301,L]          # competition/jupiler-pro-league/2013-2014/matchs/previous
RewriteRule ^competition/([A-Za-z0-9-_]+)/2012-2013/matchs/previous$ /competition/$1/matchs/previous [R=301,L]          # competition/jupiler-pro-league/2012-2013/matchs/previous
RewriteRule ^competition/([A-Za-z0-9-_]+)/matchs$ /competition/$1/matchs/results [R=301,L]                              # competition/jupiler-pro-league/matchs
RewriteRule ^competition/([A-Za-z0-9-_]+)/matchs/previous$ /competition/$1/matchs/results [R=301,L]                     # competition/jupiler-pro-league/matchs/previous

RewriteRule ^competition/ligue-des-champions(.*) /competition/champions-league$1 [R=301,L]

RewriteRule ^competition/anvers-3eme-provinciale-serie-d /category/anvers [R=301,L]
RewriteRule ^competition/anvers-3eme-provinciale-serie-e /category/anvers [R=301,L]
RewriteRule ^competition/anvers-2eme-provinciale-serie-c /category/anvers [R=301,L]
RewriteRule ^competition/flandre-orientale-4eme-provinciale-serie-f /category/flandre-orientale [R=301,L]
RewriteRule ^competition/limbourg-2eme-provinciale-serie-c /category/limbourg [R=301,L]
RewriteRule ^competition/limbourg-3eme-provinciale-serie-d /category/limbourg [R=301,L]
RewriteRule ^competition/limbourg-4eme-provinciale-serie-e /category/limbourg [R=301,L]

RewriteRule ^club/([A-Za-z0-9-_]+)/rank$ /club/$1/rank/2013-2014 [R=301,L]                                              # club/anderlecht/rank
RewriteRule ^club/([A-Za-z0-9-_]+)/matchs$ /club/$1/matchs/results [R=301,L]                                            # club/anderlecht/matchs
RewriteRule ^club/([A-Za-z0-9-_]+)/matchs/previous /club/$1/matchs/results [R=301,L]                                    # club/anderlecht/matchs/previous(.*)
RewriteRule ^club/([A-Za-z0-9-_]+)/matchs/2013-2014$ /club/$1/matchs/results [R=301,L]                                  # club/anderlecht/2013-2014/matchs
RewriteRule ^club/([A-Za-z0-9-_]+)/2013-2014/rank$ /club/$1/rank/2013-2014 [R=301,L]                                    # club/anderlecht/2013-2014/rank
RewriteRule ^club/([A-Za-z0-9-_]+)/2012-2013/rank$ /club/$1/rank/2013-2014 [R=301,L]                                    # club/anderlecht/2012-2013/rank
RewriteRule ^club/([A-Za-z0-9-_]+)/2013-2014/rank/([0-9]+)$ /club/$1/rank/$2 [R=301,L]                                  # club/anderlecht/2013-2014/rank/192
RewriteRule ^club/([A-Za-z0-9-_]+)/2012-2013/rank/([0-9]+)$ /club/$1/rank/$2 [R=301,L]                                  # club/anderlecht/2012-2013/rank/16
RewriteRule ^club/([A-Za-z0-9-_]+)/2013-2014/matchs$ /club/$1/matchs/results [R=301,L]                                  # club/anderlecht/2013-2014/matchs
RewriteRule ^club/([A-Za-z0-9-_]+)/2012-2013/matchs$ /club/$1/matchs/results [R=301,L]                                  # club/anderlecht/2012-2013/matchs
RewriteRule ^club/([A-Za-z0-9-_]+)/2013-2014/matchs/([0-9]+)$ /club/$1/matchs/results [R=301,L]                         # club/anderlecht/2013-2014/matchs/192
RewriteRule ^club/([A-Za-z0-9-_]+)/2012-2013/matchs/([0-9]+)$ /club/$1/matchs/results [R=301,L]                         # club/anderlecht/2012-2013/matchs/16
RewriteRule ^club/([A-Za-z0-9-_]+)/2013-2014/matchs/previous$ /club/$1/matchs/results [R=301,L]                         # club/anderlecht/2013-2014/matchs/previous
RewriteRule ^club/([A-Za-z0-9-_]+)/2012-2013/matchs/previous$ /club/$1/matchs/results [R=301,L]                         # club/anderlecht/2012-2013/matchs/previous
RewriteRule ^club/([A-Za-z0-9-_]+)/2013-2014/matchs/previous/([0-9]+)$ /club/$1/matchs/results [R=301,L]                # club/anderlecht/2013-2014/matchs/previous/192
RewriteRule ^club/([A-Za-z0-9-_]+)/2012-2013/matchs/previous/([0-9]+)$ /club/$1/matchs/results [R=301,L]                # club/anderlecht/2012-2013/matchs/previous/16
RewriteRule ^club/([A-Za-z0-9-_]+)/2013-2014/matchs/next$ /club/$1/matchs/next [R=301,L]                                # club/anderlecht/2013-2014/matchs/next
RewriteRule ^club/([A-Za-z0-9-_]+)/2012-2013/matchs/next$ /club/$1/matchs/next [R=301,L]                                # club/anderlecht/2012-2013/matchs/next
RewriteRule ^club/([A-Za-z0-9-_]+)/2013-2014/matchs/next/([0-9]+)$ /club/$1/matchs/next [R=301,L]                       # club/anderlecht/2013-2014/matchs/next/192
RewriteRule ^club/([A-Za-z0-9-_]+)/2012-2013/matchs/next/([0-9]+)$ /club/$1/matchs/next [R=301,L]                       # club/anderlecht/2012-2013/matchs/next/16
RewriteRule ^club/([A-Za-z0-9-_]+)/matchs/next/2013-2014$ /club/$1/matchs/next [R=301,L]                                # club/anderlecht/matchs/next/2012-2013
RewriteRule ^club/([A-Za-z0-9-_]+)/matchs/ligue-des-champions(.*) /club/$1/matchs/results/champions-league$2 [R=301,L]
RewriteRule ^club/([A-Za-z0-9-_]+)/matchs/results/ligue-des-champions(.*) /club/$1/matchs/results/champions-league$2 [R=301,L]
RewriteRule ^club/([A-Za-z0-9-_]+)/matchs/next/ligue-des-champions(.*) /club/$1/matchs/next/champions-league$2 [R=301,L]
RewriteRule ^club/([A-Za-z0-9-_]+)/rank/ligue-des-champions(.*) /club/$1/rank/champions-league$2 [R=301,L]

RewriteRule ^match/([0-9]+)/history/([A-Za-z0-9-_]+)/([A-Za-z0-9-_]+)$ /match/$1/$2/$3/history [R=301,L]                # match/30674/history/anderlecht/standard
RewriteRule ^match/([0-9]+)/rank/([A-Za-z0-9-_]+)/([A-Za-z0-9-_]+)$ /match/$1/$2/$3/rank [R=301,L]                      # match/30674/rank/anderlecht/standard
RewriteRule ^match/([0-9]+)/spectators/([A-Za-z0-9-_]+)/([A-Za-z0-9-_]+)$ /match/$1/$2/$3/spectators [R=301,L]          # match/30674/spectators/anderlecht/standard

RewriteRule ^user/([0-9]+)/matchs/next$ /user/$1/matchs [R=301,L]
RewriteRule ^user/([0-9]+)/matchs/previous$ /user/$1/matchs [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app_jikiwi.php [QSA,L]

On Github License

Files

Download PDF of Htaccess file
DEFLATE, HTTP_HOST, no-gzip, REQUEST_FILENAME, REQUEST_URI, SERVER_NAME

Comments

Apache