troubleshooting Question

Azure Web App - HTTP Redirect - web.config file help

Avatar of AWI IT
AWI IT asked on
Microsoft IIS Web ServerWeb ApplicationsAzure
23 Comments1 Solution6536 ViewsLast Modified:
Hello,

I have been trying to setup a Azure Web App with a custom domain name record and web.config file which can take care of http redirections for our domain.

I've configured the web app based on this technet article.

https://social.technet.microsoft.com/wiki/contents/articles/32229.azure-create-an-url-rewrite-azure-web-app.aspx

After following all the instructions I am unable to get the redirection to work. Here is the web.config file output which I am using.

<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name=”projects.domain.com” patternSyntax=”ECMAScript” stopProcessing=”true”>
                    <match url=”http://projects.domain.com” />
                    <action type=”Redirect” url=”https://domain.sharepoint.com/sites/pwa/default.aspx" appendQueryString=”false” redirectType=”Permanent” />
                </rule>
        </rules>
        </rewrite>
    </system.webServer>
</configuration>

When I try to connect to projects.domain.com I receive the following message.

The page cannot be displayed because an internal server error has occurred.

Can anyone please help me understand what I am doing wrong here?

Thanks.
ASKER CERTIFIED SOLUTION
Dan McFadden
Technical Lead - Active Directory

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 23 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 23 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros