How to use wildcard redirect in IIS 8

I have a WordPress site installed on IIS 8, In Windows 2012 R2 Base on AWS.

I set my site bind as 2 rules.

Read More

https://www.sitename.xyz
http://www.sitename.xyz

After that I use HTTP to HTTPS Redirect rules, as
Condition
{HTTPS} to ^OFF$
Action –
Redirect
https://{HTTP_HOST}/{R:1}
See Other
Now I can access my site when I input just “www.sitename.xyz”

But problem is, If I input just “sitename.xyz” then its showing IIS page.

Now how can I fix this? Actually I’m newbie in here also in IIS too.

Related posts

Leave a Reply

1 comment