LisaNichols-3327 avatar image
0 Votes"
LisaNichols-3327 asked ·

Creating Web.config redirect rule for wordpress site on Azure IIS that includes page-to-page redirects


We just changed the URL on our Azure hosted website. The old home page redirects correctly, BUT none of the subpages are redirecting. Instead of can type in and it does not redirect.

There is a Web.config file that has wildcard code in it, but It doesn't seem to be helping. I have inserted it below. What I am doing wrong!!!!!!

<?xml version="1.0" encoding="UTF-8"?>
      <rules><rule name="redirect" stopProcessing="true"><match url="."/><conditions>
<add input="{HTTP_HOST}" pattern="$"/></conditions>
<action type="Redirect" url="{R:1}" redirectType="Permanent"/></rule>
           <rule name="wordpress" patternSyntax="Wildcard">
               <match url="
                       <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
                       <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
               <action type="Rewrite" url="index.php"/>

· 3
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@LisaNichols-3327 You can use failed request tracking to get detailed information, If you still can’t solve the problem, please post detailed information and I will write a demo for you.

0 Votes 0 ·

Thank you for the quick response.

Unfortunately, I do not have access to server-side settings.

I was hoping to just revise the code in the Web.config file that I do have access to through FTP.

0 Votes 0 ·
SamWu-MSFT avatar image SamWu-MSFT LisaNichols-3327 ·

@LisaNichols-3327 I mean you have to know the reason for your error to solve the problem, which is why I suggest you use failed request tracking.

0 Votes 0 ·

0 Answers