Hi,
I have set up a nice rule for a coming dual-language site. If the browser is set to any german language, it will display the german version. All others will see the english version.
Now I would like to do the same for a 404 page as I am using @joeworkman excellent SEO helper.
How would I do this? The htaccess is placed this way in the root, the site in a de and en folder:
This is the actual code:
#The 'Accept-Language' header starts with 'de'
#and the test is case-insensitive ([NC])
RewriteCond %{HTTP:Accept-Language} ^de [NC]
#Redirect user to /de/index.php address
#sending 301 (Moved Permanently) HTTP status code
RewriteRule ^$ /de/index.php [L,R=301]
#For every other language (including English :)) use English
RewriteRule ^$ /en/index.php [L,R=301]
Could I add any instructions to this code or something completely different?
Thank you,
Jan