I'm trying to configure IIS url rewrite to get this:
index page
localhost/menu1
localhost/menu2
localhost/menu3
user page
localhost/user1
localhost/user2
localhost/user3
article page
localhost/1
localhost/2
localhost/3
I tried this
localhost/index.php?menu=menu1 ---> localhost/menu1 (menu variable is a string)
localhost/index.php?user=user ---> localhost/user (user variable is a string)
localhost/index.php?article=123 ---> localhost/123 (article variable is an int)
and this
localhost/index.php?menu=menu1 ---> localhost/menu1
localhost/user.php?id=user ---> localhost/user
localhost/article.php?id=123 ---> localhost/123
but I have trouble detecting cases, and if a user name equals to menu name ? how can I do? Thanks