The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

MU on subdomain of website, 404 error (6 posts)

  1. soapy138
    Posted 4 years ago #

    So I installed WP and MU, followed all directions and tried all troubleshooting methods I can find and nothing has worked. I get a 404 error whenever i try to access my sub-directories. The WP install is on a sub domain of a site though so Idk if thats why I'm having issues. I can create the sites, and they appear under network>sites and i can go to the edit page for them but whenever I try to visit or go to the dashboard I get 404. mod_rewrite is enabled on the server, and the .htaccess is set up correctly.

  2. You installed WordPress in subdomain.domain.com, and (I hope) you're using a subfolder install for subdomain.domain.com/sitename - Yes?

    What's in your .htaccess? (I know you said it's right, but a second set of eyes may help).

    Also is AllowOverride set to ALL in your httpd.conf?

  3. soapy138
    Posted 4 years ago #

    i'm not using a subfolder install, from my understanding I don't need to install wordpress in a subfolder for each /sitename, wouldnt that be defeating the purpose of MU? My htaccess is-

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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]

    Its on a linux server, so I don't think there is an httpd.conf?

    Also here's a more detailed description of what Im trying to do, http://wordpress.org/support/topic/multisite-install-on-a-subdomain?replies=2
    Thanks for helping out btw.

  4. What I mean is you picked 'Subdomain FALSE' -- Your subsites are subdomain.example.com/sitename, right? It looks like you did. I asked becuase the .htaccess files are different.

    And yes. You do too have an httpd.conf file in Linux :)

    (And I closed your other post, we don't do multiple posts on the same topic by the same author here, if we can help it)

  5. soapy138
    Posted 4 years ago #

    Oh okay, yeah thats what I picked. Where would the http.conf file be?

  6. /usr/local/apache/conf

    it's a server file. If you don't have access, ask your webhost.

Topic Closed

This topic has been closed to new replies.

About this Topic