I tried to redirect all my traffic from non-www to www, but it resulted in my non-www page being redirected to a seeminly random IP saying just "This website is temporarily unavailable, please try again later."
It has been about 12 hours where my site has been down. (I expected it working as before until the DNS records were updated) So I am getting a bit worried.
Here is how my redirect settings look like:
DNS settings look like this:
A @ Forwarded
A @ Forwarded
CNAME www badgag.trafficmanager.net
I also added this in web.config if that is relevant:
<clear />
<rule name="Redirect to https" stopProcessing="true">
<match url="(.*)"/>
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true"/>
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false"/>
</rule>
<rule name="Redirect to www" stopProcessing="true">
<match url="(.*)" />
<conditions trackAllCaptures="false">
<add input="{HTTP_HOST}" pattern="^badgag.com$" />
</conditions>
<action type="Redirect" url="{MapProtocol:{HTTPS}}://www.badgag.com/{R:1}" redirectType="Permanent" />
</rule>
Thanks in advance

Aucun commentaire:
Enregistrer un commentaire