WordPress.org

Forums

[resolved] multi-site not creating new sites, gives redirect loop. (13 posts)

  1. atxcloud
    Member
    Posted 1 year ago #

    Forgive me as I have seen this topic appear in my search efforts to resolve the issue on my own. I've now come forth to seek your advice.

    I've installed WP & built a site; currently on WP v.3.8.1. I've enabled multisite sub-domains & setup the wildcard with my hosting service provider.

    1) When I create a new site, the network dashboard shows it's existence, but I am unable to view the site nor the specific site's dashboard. Rather, I see "this page has a redirect loop."
    2) if I remove the www. from my http://www.example.com I get thrown to the /wp-signup.php?new=example.com" page saying "Registration has been disabled."

    My goal:
    1) Have a multisite network so that I can route my clients to their respective site; Sub-domain if it must, though I've have on other wp-mu installed paths.
    2) Should anyone type example.com instead of http://www.example.com have it redirect to the http://www.example.com.

    Here's my wp-config.php

    /* Multisite */
    define('WP_ALLOW_MULTISITE', true);
    
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'www.example.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    define( 'NOBLOGREDIRECT', 'http://example.com' );
    Here's my .htaccess:
    # BEGIN WordPress
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    
    # END WordPress

    I hope I've been thorough enough for someone more knowledgable than myself to resolve this problem. I'm happy to share more info should you need anything.

    Thank you in advance,
    d

  2. coriander
    Member
    Posted 1 year ago #

    Having the exact same problem when trying to create new sites in subfolders. Please help!

  3. maidanet
    Member
    Posted 1 year ago #

    Have you tried this?

    From: http://wpgarage.com/tips/wordpress-multisite-redirect-loop-for-www-site/

    The Solution: wp_blogs!
    With so many tables in multisite that kind of seem to be doing the same thing (a wp_options for each site within the multisite, wp_site, wp_blogs), we weren’t sure which one would be the magic place to add WWW. As it turns out, the answer was to add WWW to the url in ”domain” in the wp_blogs table!

    Otherwise, you could add this in your .htaccess file for each domain:
    RewriteCond %{HTTP_HOST} ^domain.com
    RewriteRule (.*) http://www.domain.com/$1 [R=301,L]

  4. atxcloud
    Member
    Posted 1 year ago #

    Hooray, partial solution!!! Thank you Maldanet!

    For the problem #2:

    Should anyone type http://example.com instead of http://www.example.com have it redirect to the http://www.example.com instead of the /wp-signup.php?new=example.com "Registration has been disabled." page.

    Solution: add to .htaccess

    RewriteCond %{HTTP_HOST} ^domain.com
    RewriteRule (.*) http://www.domain.com/$1 [R=301,L]

    However, Problem #1 still remains: wp install for client1.example.com appears in the network dashboard, but that specific site's dashboard (client1.example.com/wp-admin) yields a 404 error.

    Open for suggested solutions.
    Thank you in advance.
    - ATXcloud

  5. atxcloud
    Member
    Posted 1 year ago #

    Addition After reviewing my initial post, I would like to point out a change. It appears that, while the wp-site installation problem with client1.example.com persists, I am now no longer receiving an infinite loop. Rather,
    - client1.example.com yeilds my hosting service providers default advertising page.
    - client1.example.com/wp-admin yields my hosting service providers 404 page.

    Improvement, perhaps.

  6. client1.example.com yeilds my hosting service providers default advertising page.

    AHA! This means you're doing subdomains wrong!

    client1.example.com needs to point to where example.com is installed, NOT its own location.

  7. atxcloud
    Member
    Posted 1 year ago #

    Do you mind, please elaborating on this. Thank you in advance.

  8. atxcloud
    Member
    Posted 1 year ago #

    What needs to be done to resolve this issue?

  9. I can't because the elaboration depends entirely on your server and host.

    Who's your host?

  10. atxcloud
    Member
    Posted 1 year ago #

    I host with Bluehost.com

  11. atxcloud
    Member
    Posted 1 year ago #

    At the moment, I can log into the c-panel, create a subdomain folder and install a fresh WP through bluehost. I have client1.eample.com, and under the network dashboard, I can click on the client1.example.com dashboard. However, once I'm in the client1.example.com dashboard, I no longer apart of the network. There is no network drop down menu on the wp-menu bar, none of the plug-ins or themes are available as installed in example.com.

    It's kind of messy, but at least I can have private site for the client and in a round about way, create log-ins and links back to the main site.

    Any advice on how to truly make it a network, without having to go through the blue host's c-panel.

    Thank you in advance,
    -ATXcloud

  12. You MUST do this on cpanel, there's no way around it.

    https://my.bluehost.com/cgi/help/527

  13. atxcloud
    Member
    Posted 1 year ago #

    Thank you Ipstenu (Mika Epstein).
    I've seen your support provided over the past few years, and I want to commend you on that and well as helping me with this.

    Much Appreciations and Rock On,

    - ATXcloud

Topic Closed

This topic has been closed to new replies.

About this Topic