Netzfreiheit/SaveTheInternet/master/.htaccess - Htaccess File

Netzfreiheit/SaveTheInternet/master/.htaccess

RewriteEngine On
RewriteCond %{HTTP:Accept-Language} ^de [NC]
RewriteRule ^$ /de/ [L,R=301]
RewriteCond %{HTTP:Accept-Language} ^pl [NC]
RewriteRule ^$ /pl/ [L,R=301]
RewriteCond %{HTTP:Accept-Language} ^fr [NC]
RewriteRule ^$ /fr/ [L,R=301]
RewriteCond %{HTTP:Accept-Language} ^es [NC]
RewriteRule ^$ /es/ [L,R=301]
RewriteCond %{HTTP:Accept-Language} ^it [NC]
RewriteRule ^$ /it/ [L,R=301]
#RewriteCond %{HTTP:Accept-Language} ^sk [NC]
#RewriteRule ^$ /sk/ [L,R=301]
#RewriteCond %{HTTP:Accept-Language} ^sq [NC]
#RewriteRule ^$ /sq/ [L,R=301]
RewriteCond %{HTTP:Accept-Language} ^cs [NC]
RewriteRule ^$ /cs/ [L,R=301]

On Github License

Files

Download PDF of Htaccess file

Comments

Apache