.htaccess - htaccess redirect using not english characters -
htaccess works without problem when i`m using english characters. when use not english characters, cant redirect , shows :
not found requested url
these sample code. have tasted different types nono of them works :
redirect 301 "/مقاله-انواع-دسته-بندی-برج-های-خنک-کننده" /destination redirect 301 "/%d9%85%d9%82%d8%a7%d9%84%d9%87-%d8%a7%d9%86%d9%88%d8%a7%d8%b9-%d8%af%d8%b3%d8%aa%d9%87-%d8%a8%d9%86%d8%af%db%8c-%d8%a8%d8%b1%d8%ac-%d9%87%d8%a7%db%8c-%d8%ae%d9%86%da%a9-%da%a9%d9%86%d9%86%d8%af%d9%87" /destination
add following line in apache configuration file:
adddefaultcharset utf-8
then restart apache server. after this, may use htaccess file contains redirects utf-8 characters, , should recognized. should make sure save htaccess file in format supports utf-8.
Comments
Post a Comment