Support » Networking WordPress » Can't access wp-admin in newly added subdomain blog

  • I just added a new subdomain to our site. Upon clicking the Backend link in wp-admin I get this error:

    “Not Found

    The requested URL /wp-admin/ was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.”

    I’ve used the wp-config and .htaccess values as given during network install by WP.

    I’m using WP 3.0.1 and multisite feature.

    Any help much appreciated!

Viewing 15 replies - 1 through 15 (of 19 total)
  • Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    You need to set up the wildcard subdomains both on the server and in DNS records.
    http://codex.wordpress.org/Create_A_Network#Step_2:_Setting_Wildcard_Subdomains

    Andrea,

    You are a wordpress.org veteran! When I logged on today my post was all the down the stack, couldn’t find it. Do you accept donations?

    Anyway, your advice worked!

    I tried logging in after step 1 and it worked. Does this mean I won’t have to do step 2 or will I run into problems then again?

    For reference sake, anyone else that has this problem, here’s how I fixed it (although your configuration may be different, I am on DirectAdmin, others may be on Plesk, etc.):
    1) Go to the URL Andrea mentions;
    2) In DirectAdmin I logged in as admin (you should have this information from your host, we’re on a dedicated server);
    3) In the section ‘Extra Features’ there is a link called ‘Custom HTTPD Configurations’ that I clicked;
    4) In the page that opened I clicked our domain name;
    5) In the next page that opened I entered the contents of the link Andrea provided, replacing the ‘example.com’ with our domain and saved the file.

    OK I just tried that and although it worked it also messed up an existing subdomain we used (forums.example.com). I fixed it by replacing the asterisk (*) with the subdomain that I created. So for example if your WP multisite created subdomain blog is foo.example.com then just enter that exact domain in your httpd.conf, like so:

    ServerAlias foo.example.com

    Hope that helps others in the future.

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    When I logged on today my post was all the down the stack, couldn’t find it.

    Oops, sorry. 🙂

    You can always find answers to threads you’ve posted in by visiting your profile link in the upper right corner of the screen here, or the “member” link right next to your avatar. 🙂

    You didn’t tell me if you accept donations. 😉

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    😀

    There’s a link down in my blog sidebar at wpmututorials.com.

    skins31

    (@skins31)

    this is very useful – but my host uses PLESK and I can’t deem to find the httpd.conf file anywhere? Any ideas?

    thanks

    S

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    In Plesk you have to do it slightly differently, as they store the vhost info in separate directories.

    http://kb.parallels.com/2239

    Tho your webhost can usually give you this information.

    skins31

    (@skins31)

    this is not good…my webhost says ‘they do not support wildcard sub-domains’!:(

    They recommend that i use multi-domains – but they would ’cause I then have to pay for them!

    i did manage to change to set DNS records
    *.mydomain.co.uk…..A……75.125.202.83
    *.webmail.mydomain.co.uk……CNAME……mydomain.co.uk

    if this makes sense…?
    any ideas on how i could get around this?

    cheers

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    No, there isn’t. the server has to support it, not just the dns records.

    Alternatively, you could manually make a subdomain for each one.

    skins31

    (@skins31)

    sorry newbee to this….so instead of creating a wildcard, i create a subdomain in plesk, but do i have to then chaage any of teh dns settings or then edit the httpd.conf file…

    thanks

    s

    skins31

    (@skins31)

    and would that work with wp network or would i have to install wp into each subdomain?

    s

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    That can work with the MS setup, no separate installs required, though I’m not 100% sure of the plesk config. I think you can make subdomains via plesk and point them back to the main public_HTML folder, but I’ve never used plesk.

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    You’d still set up the network.
    You’d create the subdomain you want in Plesk. then tell it that the subdomain folder is the same one where you have wordpress installed.

    that’s it.

    skins31

    (@skins31)

    ok, i’ll give it a go.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Can't access wp-admin in newly added subdomain blog’ is closed to new replies.