I am adding sites to my MU and I am getting a 404

I have added sites to my MU and when I try to go to the new site it is giving me a 404 and server does no recognize.. What is it?

  • Tyler Postle

    Hey Bob,

    Hope you're doing well today!

    Is your multisite install brand new? If it's showing up in your site listings then that's a good sign. It could be that it just takes a bit of time for your wildcard subdomain to propagate - are you using subdomain install?

    Make sure the .htaccess you have is correct - if you're unsure what it should be then I have pasted both the subdomain and subdirectory versions here:

    Subdomain:

    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)$ wp/$1 [L]
    RewriteRule . index.php [L]

    Subdirectory:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Hope this helps and look forward to your reply Bob!

    Cheers,
    Tyler

    PS. Welcome to the WPMU DEV Community!

  • Bob

    Yes, it is new and I just upgraded my hosting to VPS last night and I just noticed my wildcard disappeared. I added it back 10 minutes ago
    I just noticed my. htaccess is gone too and also from a site that I wanted to map over. I did download the original before I networked. Should I make the changes and upload to my MU and should I add the original .htaccess file to my other site before mapping it over or what?

    All the Best,

    Bob

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.