I'm setting up URL Rewrite on an IIS and i need to match the following URLs using regex.
http://sub.mysite.com sub.mysite.com sub.mysite.com/ sub.mysite.com/Site1 sub.mysite.com/Site1/admin
but not:
sub.mysite.com/admin sub.mysite.com/admin/somethingelse sub.mysite.com/admin/admin
The site it self (sub.mysite.com
) should not be "hardcoded" in the expression. Instead, it should be matched by something like .*
.
I'm really blank on this one. I did find solutions to match the different URLs but once i try to combine them either none of them match or all of them do.
I hope someone can help me.