• Resolved craigmedia

    (@craigmedia)


    Hello,
    Hope someone can help me this is really frustrating. I have a wordpess multisite created and have got it working fine by following the instruction on how to set up a multisite. I installed it under a domain called pn-onepage.co.nz.

    However when I create another site and try to access the dashboard i get redirected to this http://deannecraig.pn-onepage.co.nz/wp-admin/install.php which is asking me to install wordpress.

    RewriteEngine On
    RewriteBase /onepage/
    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]

    this is my htaccess. I’m not sure what I’m doing wrong, I have created a wildcard subdomain in justhost. Any help would be much appreciated.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Well http://pn-onepage.co.nz/ is a white screen of death… But where is your wildcard pointing?

    Thread Starter craigmedia

    (@craigmedia)

    Hey Thanks for replying, The white screen was cause i disabled the plugins. I’ve enabled them again. I created my wildcard in justhost and it’s *.pn-onepage.co.nz I’ll taken a screenshot http://craigmedia.net/template_icon/wildcard.jpg.

    Thanks again for the quick response, I thought I might have to wait days.

    Thread Starter craigmedia

    (@craigmedia)

    I’ve tried to check support forum if anyone encountered the subsite asking to install a fresh wordpress installation, but no luck. I know. I’ve watched the tutorials online and I created the wildcard like so *.pn-onepage.co.nz and in /public_html. I’m just not sure why I’m being asked to install a new wordpress installation on the subsites.

    http://dc.pn-onepage.co.nz/wp-admin/

    Both Dashboard and when visiting site directs me there.

    Note: I have deleted the wildcard and subsite and have created the wildcard domain then added a new subsite but still getting the same issue. Asking me to install wordpress http://dc.pn-onepage.co.nz/wp-admin/

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    http://dc.pn-onepage.co.nz/wp-admin/ shows wp-admin.

    http://asdasdasc.pn-onepage.co.nz/ sends you to the main site’s page. Do you have a noblogredirect set in your wp-config?

    Thread Starter craigmedia

    (@craigmedia)

    Hey this is what’s in my wp.config.

    /**
     * WordPress Database Table prefix.
     *
     * You can have multiple installations in one database if you give each a unique
     * prefix. Only numbers, letters, and underscores please!
     */
    $table_prefix  = 'wp_';
    
    /**
     * For developers: WordPress debugging mode.
     *
     * Change this to true to enable the display of notices during development.
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
     * in their development environments.
     */
    define('WP_DEBUG', false);
    
    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'pn-onepage.co.nz');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    
    /* That's all, stop editing! Happy blogging. */
    //define('WP_ALLOW_REPAIR', true);
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    define( 'SUNRISE', 'on' );
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    I’ve been mucking around with the domains trying to get it to work. So I’ve been deleting the sites and creating the new ones. The new subdomain or subsite I’ve created is deannecraig.pn-onepage.co.nz.

    I don’t see a noblogredirect in my config.

    Any ideas? Thanks

    Yea strangely even made up subdomains are pointing to the main site.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Can you move define( 'SUNRISE', 'on' ); to be above the line that helpfully said /* That's all, stop editing! Happy blogging. */?

    This may be an issue with your server setup, outside of WordPress.

    Are you using cpanel?

    Thread Starter craigmedia

    (@craigmedia)

    Yes I’m using cpanel for justhost. I remember reading one of the other forum where you said to put the wordpress files in a holder or to hide it and try the url.

    I just did this and when I try and access dashboard I get error 404 for both main and subsite. (That’s if this info helps at all for solving the issue lol)

    Thread Starter craigmedia

    (@craigmedia)

    Oh and I did move that line you asked, this same problem, did you want me to delete the Domain mapping plugin completely? Cause I remembered even before the plugin was installed it was still the same issue.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Okay to clarify, this is what the wp-config needs to be for the Multisite section:

    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'pn-onepage.co.nz');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    
    //define('WP_ALLOW_REPAIR', true);
    define( 'SUNRISE', 'on' );
    
    /* That's all, stop editing! Happy blogging. */
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    In cpanel, how did you set up the wildcard subdomains?

    Thread Starter craigmedia

    (@craigmedia)

    Hey I set it up correctly. So I did it this way

    *.pn-onepage.co.nz and I set it for public_html/

    I didnt put anything in at the end of slash, as I was reading up your not suppose to have anything there, usually, when you put the * it auto fills it to public_html/wildcard so I deleted wildcard and left it public_html/

    http://craigmedia.net/template_icon/wildcard.jpg.

    A view of what it looks like

    Thread Starter craigmedia

    (@craigmedia)

    I have in my latest put that ‘define sunrise’ where you said to put it, still same issue, just wondering even with out the Domain Mu Mapping plugin, lets say if I deleted that plugin and all files, is the subsite still suppose to work and the subsite address deannecraig.pn-onepage.co.nz??? Just wondering if I should delete it, to nail out possibilities?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    lets say if I deleted that plugin and all files, is the subsite still suppose to work and the subsite address deannecraig.pn-onepage.co.nz

    It … might. It’s worth a try.

    Thread Starter craigmedia

    (@craigmedia)

    Have deleted the plugin and all files have created a new subsite results are still the same. Have disable all plugins as well and still getting redirected, any other testing ideas I can try to nail down other possibilities?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I really think this is something done wrong on your server, or in your vhosts file at this point.

    Thread Starter craigmedia

    (@craigmedia)

    @ipstenu

    Hey, i’m still stuck on this issue, and my hosting company say they don’t provide or offer support for WordPress Multisite.

    What’s I’ve done now, is used another domain called pasifikanetworkgroup.com and created a freshly installed wordpress there.

    After making is multisite I then created a subsite on there called test.pasifikanetworkgroup.com. It is doing the same issue as my pn-onepage.co.nz domain.

    The really weird thing about it though, is that when I try and access the subsite dashboard which is:

    http://test.pasifikanetworkgroup.com/wp-admin it redirects me to the pn-onepage.co.nz login, which is:

    http://pn-onepage.co.nz/wp-login.php?redirect_to=http%3A%2F%2Ftest.pasifikanetworkgroup.com%2Fwp-admin%2F&reauth=1

    I don’t understand, I created a new database and created a new wildcard for it as well, have tested it on Chrome and Ie Browsers and it still redirects me to that page.

    You have any idea why?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Subsite Dashboard and subdomain gets redirected to install.php’ is closed to new replies.