• Resolved seldarkroom

    (@seldarkroom)


    I hope someone can help me. I’ve been using similar forum posts to get to this point but am stuck ??

    So I’ve installed WP multisite in the root folder of the main site as instructed and after lots of troubleshooting using other forum links (thanks guys), I finally got the network admin working.

    The main site works perfectly well and the admin area works well, however the first subdomain site I created, although it shows up at the subdomain address (ie kiorapsychotherapy.lifeaftertrauma.com.au) any links to pages/posts etc redirect to the main domain rather than the subdomain address. I’ve installed domain mapping but don’t seem to be able to get it to work either at this point and I think everything is in the correct place as per instruction :/

    In the end I want the site to redirect to its actual web address (ie kiorapsychotherapy.com.au) … currently if I go to this url I get the following: https://lifeaftertrauma.com.au/wp-signup.php?new=www.kiorapsychotherapy.com.au
    so it’s finding a ‘non-existant’ site. I understand that if I change subdomain install to false then it goes directly to the main domain and also if I amend the wp-config file to include a NOBLOGREDIRECT then I get the same result. Should I be looking at the DNS entries? I have a wildcard DNS set up … i also have subdomain DNS entries … is this correct?

    I don’t want to make any more updates to the theme until I have this sorted so please excuse the WIP.

    Here is my current relevant code from the wp-config

    define('WP_DEBUG', false);
    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'lifeaftertrauma.com.au');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    And from the htaccess

    <IfModule mod_rewrite.c>
    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]
    </IfModule>

    I’m sure someone can see quite quickly what I’ve done wrong … I’m hoping ?? And I hope that I explained that clearly. This is my first multisite and am rather confused :/

    Thanks so much.

Viewing 13 replies - 16 through 28 (of 28 total)
  • Thread Starter seldarkroom

    (@seldarkroom)

    Apache version 2.2.23
    PHP version 5.3.19
    MySQL version 5.1.66-cll
    Architecture x86_64
    Operating system linux

    And it’s a Shared IP

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    All of that is good. *ponder* Well the best I can think of is that your server’s not supporting whatever it is that makes this work. You were using subdomains and they worked just fine before mapping, right?

    Thread Starter seldarkroom

    (@seldarkroom)

    Hey Mika, yep the subdomain site is working but as soon as I ‘turn’ sunrise.php ‘on’ I get the ‘You do not have sufficient permissions to access this page.’ message ??

    Here’s how it all works in full which may help – I can access the subdomain wp-admin area but if I try to access the network admin area I get the above message.

    If I try to access the main domain admin area I get this message:

    “You attempted to access the “Main domain” dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the “Main domain” dashboard, please contact your network administrator.

    If you reached this screen by accident and meant to visit one of your own sites, here are some shortcuts to help you find your way.

    Your Sites
    Main site Visit Dashboard | View Site
    (if I click on these the first takes me straight back to this message, and the second takes me to the site url but with a ‘this is somewhat embarrassing, isn’t it? message)
    Subdomain site Visit Dashboard | View Site
    (if I click on these they both take me to the correct places

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Are all those errors -without- mapping active?

    Thread Starter seldarkroom

    (@seldarkroom)

    Hey Mika, These errors occur during the installation of the Multisite Domain Mapping plugin. This happens when I add the following line to wp-config.php to activate sunrise.

    define( 'SUNRISE', 'on' );

    So mapping is not yet active … I’m not even getting that far.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What are the permissions on the sunrise.php file in wp-content?

    Thread Starter seldarkroom

    (@seldarkroom)

    Ahhh good point … currently 644. What should they be?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    When you say you scrapped everuthing and started over… how scrap do you mean? Did you delete everything, the files and the DB and all?

    Thread Starter seldarkroom

    (@seldarkroom)

    Hi, yes I deleted everything – the plug in files, and went and deleted the DB files as instructed.

    Although I just noticed that I didn’t delete and reinstall the blog.dir file – only just realised the date is old? will that make a difference?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    No… it shouldn’t. This is just weird. I can’t reproduce that at all ??

    Thread Starter seldarkroom

    (@seldarkroom)

    I’m finding the thing that’s the weirdest is that the subdomain admin remains when I activate sunrise and that it’s the admin for the main domain that I can’t access.

    So, it makes me wonder if somehow when I did the first install and gave the subdomain a 1 allocation that that is being stored somewhere so it’s getting priority. Although I would’ve thought that if I completely deleted the plugin and all the associated files that that wouldn’t have retained that information anywhere ??

    So confused I’m thinking I may need to do individual installs for each site which would be really dull and rather annoying for my client.

    However, I may try and do an install on my own wp site and see if it works there or if I get the same error. That way we can see if it’s just ME.

    Thread Starter seldarkroom

    (@seldarkroom)

    Ok … so after my post above I decide to give it a last shot and activated sunrise again to see if I could access any domain mapping in the subdomain admin area … and after changing my ftp upload settings to an unsecure ftp (no idea if that made a difference) and uploading the wp-config file it enabled it (only for the subdomain still). AND … yes I had access to mapping and changed my initial error (which I don’t know how it was still there but it was) … and deleted it. And boom! plug in is now working … so no wonder you couldn’t reproduce it cause it was ME after all … but at least my typing out loud made me think it through a bit more.

    Now to the actual mapping and see if I can get it right this time! Stay tuned so we can close this and I can stop confusing you and frustrating myself ??

    Thread Starter seldarkroom

    (@seldarkroom)

    Mika!!! It’s done and working and I just want to thank you for your time, patience and support!!
    Thank you sooo much ??

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘Subdomain redirecting to main domain’ is closed to new replies.