WordPress Arabic permalinks on IIS

Urls with arabic slugs are going to 404 on iis windows server and working fine on apache server.

When i have arabic in url like /ar/product-categories/الأرز/

It is redirecting to 404 when i edit the slug into English it’s working.

Beginner Asked on April 20, 2018 in Web Dev.
Add Comment
1 Answer(s)
Best answer

This issues is caused due to IIS does not recognize the multi language urls,

I resolved this issue by adding the following code at the end of the wp-config.php file:


if ( isset($_SERVER['UNENCODED_URL']) ) {

$_SERVER['REQUEST_URI'] = $_SERVER['UNENCODED_URL'];}

Beginner Answered on April 20, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.