• Hello all,

    I have a Goddady unlimited SSL hosting account with cPanel. I have successfully installed a multisite in the root directory here:

    https://www.janaslani.com
    https://www.janaslani.com/cc10/

    I’m having difficulty resolving a domain name and it’s SSL to a second site (DNS is properly resolving to my hosting IP):

    https://www.cc20.com/
    https://www.cc20.com/wp-admin

    I have configured the multisite .htaccess:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    </IfModule>

    …and the wp-config.php:

    /* Add any custom values between this line and the "stop editing" line. */
    
    /* Multisite */
    define( 'MULTISITE', true );
    
    define( 'SUBDOMAIN_INSTALL', false );
    define( 'DOMAIN_CURRENT_SITE', 'www.janaslani.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
    
    /* That's all, stop editing! Happy publishing. */

    Any help would be greatly appreciated,

    – Edwin.

    • This topic was modified 2 years, 10 months ago by janaslani.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • @janaslani Did you add this domain as an alias within your Godaddy account for https://www.janaslani.com/ ?

    When I proceed past the privacy warning on https://www.cc20.com/ I see “Future home of something quite cool.” which seems like a default hosting page. Probably once you add this as an alias it should work.

    I setup a multisite recently and added a domain and ran into a similar problem as just pointing the DNS is not enough. I had to go into the hosting control panel and add the domain there as an alias. Once you do that, it may take some time for the SSL to kick in if you have the correct SSL setup.

    Unfortunately I have not much experience with Godaddy. I would suggest if you have the domain and hosting with them to reach out and I’m sure they can point you in the right direction on the next steps.

    Thread Starter janaslani

    (@janaslani)

    @crazywpgeek thanks for the help!

    Yes, in cPanel:

    cc20.com is an alias
    janaslani.com is a site (primary multisite host)

    As for GoDaddy, they won’t offer support with WP, even though the offer it -_-

    Have I missed something in the wp-cofig code above, perhaps? Should I have configured janaslani.com as a sub-domain multisite instead of sub-directory?

    • This reply was modified 2 years, 10 months ago by janaslani.
    • This reply was modified 2 years, 10 months ago by janaslani.
    Thread Starter janaslani

    (@janaslani)

    Hi all, I seem to have fixed the issue. For anyone interested:

    In cPanel

    1. Deleted cc20.com alias
    2. Added cc20.com as a domain. This created a directory /public_html/cc20
    3. Went back in to the cc20.com domain and removed /cc20. This forced the domain inquiry to return to the root, and let the multisite .htaccss redirect to janaslani.com/cc20

    https://www.cc20.com is now working, and so is the SSL. Just have to figure out how to point other instances of the domain to the secure domain ??

    Thanks @crazywpgeek for chiming in,
    Edwin.

    @janaslani great to hear you got it sorted. I guess as long as the domain is added and points to your root directory where the mulsisite is installed it will all work out fine.

    This is how I have it setup in cPanel and it works fine. Strange if that didn’t work on your end. Must be a Godaddy thing ??

    https://share.getcloudapp.com/9ZuDdGnL (screenshot link)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Trouble resolving a domain name to a multisite sub-directory’ is closed to new replies.