判断浏览器语言并实现跳转。国内大部分人使用的浏览器是中文,为了区分浏览人群——国内大部分网站,为中文和英文两种语言。
323
RewriteCond %{HTTP:Accept-Language} ^zh-cn.*$ [NC]
RewriteRule ^/?$ http://www.yourdomain.com/error.php [R=301,L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{HTTP:Accept-Language} ^zh-cn.*$ [NC]
RewriteRule ^/?$ http://www.theotherlink.com/ [R=301,L]
</IfModule>
除特别注明外,本站所有文章均为小杜博客原创,转载请注明出处来自https://www.alextoo.com/730.html
暂无评论