Viewing 13 replies - 1 through 13 (of 13 total)
  • So… when you migrate over the blogs and map the domains, is the domain mapping plugin keeping the www or stripping them out?
    Have you tried going to Super Admin -> Sites then Edit and fill in the www?

    Thread Starter tradiart

    (@tradiart)

    Hello Andrea,

    Sorry for not answering to your question, dindn’t receive email notification.

    Yes, in Super Admin > sites, the www is present in front of the domain.

    When I visit the domain without www, it takes too long… and never loads anything, just waiting. Then, a message, seems the page is not redirecting correctly.

    In Super Admin > Domain Mapping Configuration I have all options active. That’s the only way everything works.

    This is the content of htaccess:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]

    This happens with main domain and the domains added to network.

    Thank you!

    And on the server side, when you parked/ aliased the domain you wanted to map, did you include the www or not?

    At this point,. it’s all to do with the server settings.

    Thread Starter tradiart

    (@tradiart)

    The second domain is added without www. I have redirected now to https://www.domain.com, in CPanel, but the result is the same…

    Check your server DNS records.

    Hi Andrea,

    as I have the exact same issue, I’ve checked with my hosting company, here’s the answer I got:

    Hello,

    DNS has nothing to do with anything in your browser other than what it resolves to. The www CNAME already exists and is configured correctly.

    $dig -t CNAME https://www.onlinemarketinghome.com

    ;; QUESTION SECTION:
    ;www.onlinemarketinghome.com. IN CNAME

    ;; ANSWER SECTION:
    https://www.onlinemarketinghome.com. 14387 IN CNAME onlinemarketinghome.com.

    ;; ADDITIONAL SECTION:
    onlinemarketinghome.com. 14387 IN A 69.41.236.43

    It is possible to create a CNAME for each subdomain/site created. The record would look like the following:

    https://www.subdomain in CNAME onlinemarketinghome.com.

    The above will not force anything to load and would be redundant because if it weren’t created it would still work because of the www CNAME configured as shown above is pointing to the same place along with the wild card subdomains that should be configured.

    Unfortunately to accomplish this you will need a complex rewrite rule which may conflict with WordPress itself and possibly cause an infinite redirect loop. The coding is not something we can support.

    Any other ideas? Thank you very much,
    Robert

    What host are you on?

    SEOhosting.com, which is the “seo specialised” branch of hostgator.

    You know they gave you an answer to include the www, when your issue is the opposite?

    If they can’t manage to be able to point both the www and the non www to a folder on the server, then I’d start looking elsewhere. Even the basic hostgator packages are better than that.

    Thread Starter tradiart

    (@tradiart)

    Oh my, of course we are doing something wrong ??

    After upgrading to 3.1.1, the situation has changed a bit.

    Main domain for me is working fine. Non-www main domain redirects to main domain. Nice ??

    maindomain.com to https://www.maindomain.com ??

    But other domains in network without www redirect to main domain.

    netdomain.com to https://www.maindomain.com ??

    Andrea, this must be something related to htaccess rules, DNS records must be fine, right?

    The htaccess seems identical….

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    Hope this brings some clarification to the problem.

    But other domains in network without www redirect to main domain.

    netdomain.com to https://www.maindomain.com ??

    Andrea, this must be something related to htaccess rules, DNS records must be fine, right?

    No, it’s not htacess. There’s only one for all sites.

    If those other domains are mapped domain, and the NON www version of those mapped domains to those sub sites.

    Visit the sites in question.
    Look under tools -> Mapping.
    make sure both the www and non www are there. Pick one to be the primary domain for that site.

    You can ignore it and force the www server side.

    Thanks!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Maintain WWW prefix in domains added to multisite’ is closed to new replies.