Question

Photo of Don Smallman

0

Domain pointers

When people type in out domain name without the preceeding www, they are directed to the admin login page.  If they type in the www's, then they are directed to the external site home page.  Is there something with my RockRMS setup that could be causing this?  I would like them both to go to our exteral site home page.

Arvixe does not seem to know what it is working this way.

Thanks!

  • Photo of Trey Hendon III

    0

    Hey Don,

    In my Arvixe install I forward pcrsupport.com to www.pcrsupport.com.

    WARNING:  What I'm about to share can really mess up your site if not done correctly.

    I manually downloaded my web.config file (using the File Browswer in the Arvixe Control Panel), added the following Rewrite rule in the system.webServer node, then uploaded the new web.config and restarted my site (Control Panel > Web > Web Sites).

        <rewrite>
          <rules>
            <rule name="Add WWW prefix" >
              <match url="(.*)" ignoreCase="true" />
                <conditions>
                  <add input="{HTTP_HOST}" pattern="^pcrsupport\.com" />
                </conditions>
                <action type="Redirect" url="http://www.pcrsupport.com/{R:1}" redirectType="Permanent" />
            </rule>
          </rules>
        </rewrite>

  • Photo of Jim Michael

    1

    I think the issue is that Rock will default to the internal site when there is no site defined with a particular DNS name. So, since www.yourdomain.com is defined for your external site, that works... but yourdomain.com is NOT defined there and thus defaults to the internal site. I think all you need to do is edit the external site (Admin Tools | CMS Configuration | Sites) and add yourdomain.com to the list (comma delimited.)

     

    Here we prefer some consistency in our URLs, so while we allow people to "get to" our web site via yourdomain.com, we instead use IIS to redirect any requests to that domain to www.yourdomain.com. In that way, everyone "lands" on the same site with the same URLs. That's just what we prefer vs. having a site listen for multiple DNS names.

  • Photo of Don Smallman

    0

    Thanks Jim!  I'm not sure with Arvixe I have that kind of control over IIS.

  • Photo of Don Smallman

    0

    Thanks Trey.  Does this mean that you had the same issue with your site?

    • Trey Hendon III

      I had a very similar thing on my Arvixe install. However, I changed my site settings in Rock so that no www was the public site instead of staff site. The reason I went ahead and force the www for public is because technicality www and no-www are two different sites - which means logins do not persist. Because I want to ensure a good user experience, I'm forcing the traffic to one place.