Can't access wp-admin in newly added subdomain blog (20 posts)

  1. suc
    Posted 5 years ago #

    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!

  2. You need to set up the wildcard subdomains both on the server and in DNS records.

  3. suc
    Posted 5 years ago #


    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.

  4. suc
    Posted 5 years ago #

    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.

  5. 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. :)

  6. suc
    Posted 5 years ago #

    You didn't tell me if you accept donations. ;)

  7. :D

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

  8. skins31
    Posted 5 years ago #

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



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


    Tho your webhost can usually give you this information.

  10. skins31
    Posted 5 years ago #

    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

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


  11. 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.

  12. skins31
    Posted 5 years ago #

    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...



  13. skins31
    Posted 5 years ago #

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


  14. 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.

  15. 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.

  16. skins31
    Posted 5 years ago #

    ok, i'll give it a go.

  17. skins31
    Posted 5 years ago #

    OK, i've set up a subdomain within plesk patrick.timetrekkers.co.uk, and this shows correctly as a subdomain and i have set up a site patrick within wordpress working as network. But when i visit patrick.timetrekkers.co.uk all i get is the default plesk page.

    The records for this subdomain under DNS settings now show - (Host)patrick.timetrekkers.co.uk......(Record Type) A.......(Value)

    This is the same as for timetrekkers.co.uk which reads (Host)timetrekkers.co.uk.......(Record Type) A.........(Value) - but when i visit this site it works...

    is it that i simply have to waitfor it to be updated?

  18. skins31
    Posted 5 years ago #

    when i try to look at the Backend of patrick.timetrekkers.co.uk i get The requested URL /wp-admin/ was not found on this server...do think this is related to the problem above.


  19. Because you need to create a serveralias between the subdomain and the main site. and not have a physical folder on the server for the subdomain.

  20. skins31
    Posted 5 years ago #

    Done it!! Fantastic

    All i did was go into the timetrekkers.co.uk domain and create an alias patrick.timetrekkers.co.uk and mapped this in wordpress - I now see what you mean about not having a physical folder, as i didn't actually create a subdomain in plesk, i only created the alias.

    Thanks again for the help!

Topic Closed

This topic has been closed to new replies.

About this Topic