• Resolved Peter

    (@graphicspike)


    We recently migrated our single site to a multisite and have run into a variety of issues. Our site is hosted on Azure (Microsoft – IIS). The issue is thomas.edu/visit forwarded you to a page to register a new site, while https://www.thomas.edu/visit went to the correct location. All url’s now require www in order to work correctly.

    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.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’d ask this one at the Azure support system.

    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.

    Thread Starter Peter

    (@graphicspike)

    Thank you for your response. I spoke to our IT department and they have opened a ticket with Microsoft to resolve the issue. Once we determine what the cause is, I will share it.

    I also passed on the message about the DNS.

    Thread Starter Peter

    (@graphicspike)

    Working with Microsoft we were able to resolve the issue. There were a couple things they mentioned that could have been an issue. They had us place this rule first, before WordPress Rule 1. The code they provided is below.

    <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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multisite subdomain non-www link issue’ is closed to new replies.