404 for custom static link on IIS with URL Rewrite Module

I need to use IIS to develop the new WordPress site. After reading a lot of articles, I installed the URL Rewrite Module on IIS (https://www.iis.net/downloads/microsoft/url-rewrite).

My site structure is:

localhost/projectname/projectcms/

I set the WordPress URL on cms as:

http://localhost/projectname/projectcms

And the wordpress was installed inside the projectcms folder.

The site URL as:

http://localhost/projectname

Also, I customize the permalink as:

http://localhost/projectname/% category%/%year%/%postname%/

(no space between % and c)

However, those pages display 404 errors.

What is the rewrite rule I need to set on the URL Rewrite Module in order to make those links work?

Topic rewrite-rules mod-rewrite iis url-rewriting permalinks Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.