I cannot link back subdomain to main domain
-
I’ve spent so long trying to solve this, with so many different issues. Here goes my attempt to make sense of them all:
I initially had 2 installs of wordpress, unlinked but really wanted them to share logins, themes, etc etc so went for a network.
The network installed great on my main blog, taken control of plug-ins to the site admin, etc.
The subdomain however did not link, and maintained it individuality but of course the link from the network admin works as i had set it to be be linked from there.
main install is set up as:
define(‘WP_DEBUG’, false);
define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN_INSTALL’, true );
$base = ‘/’;
define( ‘DOMAIN_CURRENT_SITE’, ‘www.mjswalking.co.uk’ );
define( ‘PATH_CURRENT_SITE’, ‘/’ );
define( ‘SITE_ID_CURRENT_SITE’, 1 );
define( ‘BLOG_ID_CURRENT_SITE’, 1 );
So i have tried the following in my attempts to fix it:
and tried to do something similar to above but i get 1 of 3 errors, depending on the things i have tried:
define(‘WP_DEBUG’, false);
define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN_INSTALL’, true );
$base = ‘/’;
define( ‘DOMAIN_CURRENT_SITE’, ‘webshop.mjswalking.co.uk’ );
define( ‘PATH_CURRENT_SITE’, ‘/’ );
define( ‘SITE_ID_CURRENT_SITE’, 6 );
define( ‘BLOG_ID_CURRENT_SITE’, 6 );
i either get a 500 error, or it tells me i cannot install the subdomain or i get a database error! (by swapping webshop in and out of here and there and tryign to drop different definitions off the scriptI have read so many pages, i am not clear if i even need a second install. It reads as if i just create a subdomain from within the network settings and it should work… so i tried a new subdomain from that end, didn’t work., got a 500 error!
Next i removed my original second install (only had 2 posts) and reinstalled, still no joy! I am sure i am just mis understanding something somewhere, can you help? I did a verification and got the following errors, the sites listed all created in the network admin panel but i am not sure where to go to put the issues right. I’ve not broken into code much, replying on plugins as much as possible:Checking wp_site table for selected Network by ID:
Passed.
Checking wp_site table for a unique combination of domain and path:
Passed.
Checking for super admin(s):
Passed. Found 2 super admins
Mark_Smith
saraconde
Checking DNS for this network:Passed.
Checking hosted sites for correct Network-related values:
Site 6 (webshop.mjswalking.co.uk/) has an invalid domain setting.
Site 8 (affiliates.mjswalking.co.uk/) has an invalid domain setting.
Checking hosted sites for correct Network-related meta values:
Site 1 (www.mjswalking.co.uk/) has an invalid meta value in home. This may prevent access to this site or disable some features.
Site 1 (www.mjswalking.co.uk/) has an invalid meta value in siteurl. This may prevent access to this site or disable some features.
Site 6 (webshop.mjswalking.co.uk/) has an invalid meta value in fileupload_url. This may prevent access to this site or disable some features.
Site 6 (webshop.mjswalking.co.uk/) has an invalid meta value in home. This may prevent access to this site or disable some features.
Site 6 (webshop.mjswalking.co.uk/) has an invalid meta value in siteurl. This may prevent access to this site or disable some features.
Site 8 (affiliates.mjswalking.co.uk/) has an invalid meta value in fileupload_url. This may prevent access to this site or disable some features.
Site 8 (affiliates.mjswalking.co.uk/) has an invalid meta value in home. This may prevent access to this site or disable some features.
Site 8 (affiliates.mjswalking.co.uk/) has an invalid meta value in siteurl. This may prevent access to this site or disable some features.
Can you give me some advice? I am sure its something basic
- The topic ‘I cannot link back subdomain to main domain’ is closed to new replies.