How can redirect if url contains Chinese characters VS English characters in the same .htaccess file as below:
Chinese characters : http://ift.tt/2ah62sS
Redirect : http://ift.tt/2a4IC6B
English characters : http://ift.tt/2a4IxzS
Redirect : http://ift.tt/2ah6Ei9
Now, I am using the below code, how can I use if condition to join the 2 codes in the same .htaccess file ?
Redirect for English:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^abcdefg.com/wiki/$ [NC]
RewriteRule ^(.*)$ http://ift.tt/2a4IwMn [L,R=301]
Redirect for Chinese:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^abcdefg.com/wiki/$ [NC]
RewriteRule ^(.*)$ http://ift.tt/2ah5K5j [L,R=301]
Thank you for your help in advance.
Aucun commentaire:
Enregistrer un commentaire