• Hey All,

    I’m working on a site for a client who’d like new blogs created for their multisite install. The short history of the site is that it was created on a .org domain and then migrated to a .com domain. There was an error in the wp-config file where the .org had not been updated, but fixing that had no apparent effect on creating a new subdomain.

    They’re using subdomains, and already have a number of subdomains working, but when I try to create a new subdomain all I get is a 404 error.

    The proper tables are being created in the DB; I’ve double checked that.

    I’ve also tried manually creating the subdomain from CPanel to no avail.

    I’ve double checked the .htaccess file, but here are the contents just in case I missed something:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]

    I don’t have acccess to the httpd.conf file so I can’t confirm it’s contents.

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

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    What happens if you go to totallyfakedomain.yourdomain.com?

    That should redirect you to the registration page on yourdomain.com

    If not, then it’s your wildcard subdomains not being generated correctly.

    Thread Starter Adam Blodgett

    (@epymetheus)

    Hey Ipstenu,

    Thanks for the reply. Your example was very useful. The site is not redirecting, so clearly it’s the wildcards.

    I believe I’ve set up the wildcards in CPanel by creating a *.fakedomain.com in the subdomain section. Where else can I look for wildcard errors?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Go back into cPanel.

    Look at the subdomain value for your wildcard.

    The ‘name’ should be *

    And that should point to /public_html/ (or which ever you have as your base location).

    What do you see?

    Thread Starter Adam Blodgett

    (@epymetheus)

    Hey Ipstenu,

    I see that I have *.mydomain.com along with the 8 other subdomains that already existed when the site went live.

    They’re all aimed at public_html

    A.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    And none of them work, or only the ones that existed beforehand?

    Your server may not support wildcards.

    Thread Starter Adam Blodgett

    (@epymetheus)

    The previous subdomains continue to work.

    If the server doesn’t support wildcards does that mean no new subdomains can be created? Or only that they have to be created in a certain way?

    A.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    They have to be made manually πŸ™

    So like your previous subdomains, you’d have to make the new one, manually point it back up at public_html, and so on :/

    Thread Starter Adam Blodgett

    (@epymetheus)

    But that’s not working either. In this situation it’s not a problem since we’re controlling the subsites; we’re not allowing new folks to create them.

    But that’s not even working. Even when I manually create the subdomain I’m still getting a 404 when I try and visit the site’s dashboard. That’s what I don’t understand. The subdomain is there, the tables in the DB are there and populated, but no subsite or dashboard exist.

    It’s very strange.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    You get a 404 on the dash, what about on the main site?

    I mean, sub.domain.com/wp-admin fails, does sub.domain.com work?

    Thread Starter Adam Blodgett

    (@epymetheus)

    Nope. The site also errors out.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    If you make a ‘normal’ subdomain does that work? I mean, no changing the path or anything?

    Thread Starter Adam Blodgett

    (@epymetheus)

    No, normal subdomains aren’t working either. Neither are subfolders, for that matter. Usually WP won’t interfere with an independent subfolder with simple HTML, but I can’t even get that to pop up.

    So, is this looking like a server issue rather than a WPMS issue?

    A.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Yeah, that sounds like something on the server went weirdo or the .htaccess is corrupted. And since the rest of your stuff is working…

    That is the full .htaccess right?

    Thread Starter Adam Blodgett

    (@epymetheus)

    Yep, that’s the lot of it. Nothing more or less as far as I know.

    Thanks for the help Ipstenu. I’ll mark this resolved and start a new thread if I find something new.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Subdomains Not Working’ is closed to new replies.