Skip to content

Instantly share code, notes, and snippets.

@bepatrickdavid
Last active September 28, 2015 10:15
Show Gist options
  • Save bepatrickdavid/0c5432b1b3b362913d71 to your computer and use it in GitHub Desktop.
Save bepatrickdavid/0c5432b1b3b362913d71 to your computer and use it in GitHub Desktop.
WP: htaccess redirect reindirizzamento page in base languages in base alla lingua
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP:Accept-Language} ^en [NC]
RewriteRule ^/?$ http://www.zendergroup.com/en/ [R,NC,L]
RewriteCond %{HTTP:Accept-Language} ^de [NC]
RewriteRule ^/?$ http://www.zendergroup.com/de/ [R,NC,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment