Wordpress Arabic url is not working in windows iis server

Auto-Install Applications > Wordpress

Issue:

URLS with Arabic slugs are going to 404 on IIS windows server and working fine on Apache server.

when you Arabic in URL like /ar/product-categories/?????/

it is redirecting to 404 when you edit the slug into English it's working

 

Solution:

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

Try adding the following code at the end of the wp-config.php file:

if ( isset($_SERVER['UNENCODED_URL']) ) {
$_SERVER['REQUEST_URI'] = $_SERVER['UNENCODED_URL'];}