Following some instructions I have added define(‘NOBLOGREDIRECT’… to my wp-config.php file, but this does not resolve the issue. It just forwards everyone back to the homepage.
We have tried adding a new rule to web.config, but it did not help.
<rule name="Add www" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{CACHE_URL}" pattern="^(.+)://(?!www)(.*)" />
</conditions>
<action type="Redirect" url="{C:1}://www.{C:2}" redirectType="Permanent" />
</rule>
With our old single install whenever someone typed in a URL that was close, it would forward to the correct page, now it has to be exactly a match. Is this normal with the multisite?
If we can’t resolve this we will have to switch back to a single site, but I am hoping someone out there has seen this and knows how to resolve it.
]]>There is one thing you might check first though… Make sure you have a ‘A’ record for your domain (without the ‘www’) pointing at the server and I’d Cname the www to the domain itself. The little tool I used says you don’t have a Cname.
I have no idea about how this works on Azure as a host but on most webservers the server needs to know what to do with domains and their subdomains.
]]>I also passed on the message about the DNS.
]]><rule name="Redirect to www" stopProcessing="true">
<match url="(.*)" negate="false"/>
<action type="Redirect" url="https://www.thomas.edu/{R:1}"/>
<conditions>
<add input="{HTTP_HOST}" pattern="^www.thomas\.edu$" negate="true"/>
</conditions>
</rule>
Not sure if this will help others, but this was the solution to my issue.
]]>