TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ib bellad
1.4k
376
35.2k
url rewritting in iis 7
Aug 10 2017 7:30 AM
Hi,
I wann redirect the url from https://www.subdomain.domain.com or www.subdomain.domain.com to https://www.subdomain.domain.com. When user enter the URL with "www" its showing 'privacy error' and i had purchased the wildcard ssl certificate. and also wriitten code in web.config file:
<
rewrite
>
<
rule
name
=
"Remove WWW and Ensure HTTPS"
stopProcessing
=
"false"
>
<
match
url
=
"^(.*)$"
/>
<
conditions
logicalGrouping
=
"MatchAny"
>
<
add
input
=
"{HTTP_HOST}"
pattern
=
"^(www\.)"
/>
<
add
input
=
"{HTTPS_HOST}"
pattern
=
"^https://www\.(.*)\.(.*)\.(.*)$"
/>
<
add
input
=
"{HTTPS}"
pattern
=
"^OFF$"
/>
</
conditions
>
<
serverVariables
/>
<
action
type
=
"Redirect"
url
=
"https://{HTTPS_HOST}{REQUEST_URI}"
/>
</
rule
>
</
rules
>
</
rewrite
>
Thanks in Advance
Reply
Answers (
2
)
What does the Orientation property do in a Menu control?
How to achieve Remote validation from Fluent validation mvc5