Could you tell us what is your actual requirement?
Regards,
Jalpa.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
976 Posts
Re: IIS HTTP Redirect too many times error
Jan 04, 2019 08:59 AM|Jalpa Panchal|LINK
Hi distanceeducation,
Your url rewrite rule is not in proper format and i tried your url rewrite code:
rule name="Redirect to WWW" stopProcessing="true">
<match url=".*"></match>
<conditions>
<add input="{HTTP_HOST}" pattern="^site1.com$"></add>
</conditions>
<action type="Redirect" url="http://www.site1.com/{R:0}" redirectType="Permanent"/>
</rule>
<rule name="Default Document" stopProcessing="true">
<match url="(.*?)/?index\.php$" />
<action type="Redirect" url="{R:1}/"/>
</rule>
it shows me below error:
Could you tell us what is your actual requirement?
Regards,
Jalpa.
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.