• I am trying to run a multisite installation in a subdirectory under my main wordpress site.

    This is what I’ve done so far:

    1. Installed a totally clean wordpress install in the subdirectory
    2. Installed the multisite network with sites as subdirectories
    3. Copied the wp-config settings to the wp-config file of the fresh install
    4. Created a new .htaccess file with the appropriate content in the subdirectory containing the fresh install.

    I can view the Main Installation however when I create a new site and try to view it or it’s dashboard I just get a page not found error.

    Can anyone help me out with what’s going wrong here?

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

    (@ipstenu)

    ?????? Advisor and Activist

    What’s in the subfolder .htaccess?

    And is there anything the main site’s .htaccess that might conflict?

    Thread Starter michellekoen

    (@michellekoen)

    The subdirectory .htaccess has only the code that the wordpress network setup asked for:

    # BEGIN WordPress
    RewriteBase /artists/
    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).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    
    # END WordPress

    The main site .htaccess has the standard pre-network wordpress code:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Plus a whole heap of re-write commands for subdomains outside of the wordpress hash such as:

    RewriteCond %{HTTP_HOST} ^susyblue.mydomain.net$ [OR]
    RewriteCond %{HTTP_HOST} ^www.susyblue.mydomain.net$
    RewriteRule ^/?$ "http\:\/\/www\.mydomain\.net\/category\/artists\/susy\-blue\/" [R=301,L]
    
    RewriteCond %{HTTP_HOST} ^blog.mydomain.net$ [OR]
    RewriteCond %{HTTP_HOST} ^www.blog.mydomain.net$
    RewriteRule ^/?$ "http\:\/\/www\.mydomain\.net\/category\/blog\/" [R=301,L]
    
    RewriteCond %{HTTP_REFERER} !^https://*.mydomain.net/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^https://*.mydomain.net$      [NC]
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You’re going to have to go through those rewrites and see if any of them are causing your artists folder to behave wrong.

    What you’re trying to do SHOULD work out of the box.

    Thread Starter michellekoen

    (@michellekoen)

    I’ll give that a try.. might have to wait until after the holiday season though..

    Thanks

    S

    Thread Starter michellekoen

    (@michellekoen)

    OK,

    I’ve hat a play around with the .htaccess in the root for the main site with no luck.

    I deleted all those extra re-writes one by one until I had the blank pre-network wordpress code:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Still the sites in the sub directory didn’t work. So I then copyied the .htaccess from the sub-directory into the main root. The main site installation continues to work fine and I can access the main installation of the subdirectory but network sites still fail.

    With the networked version of .htaccess in the main root I tried it with and without the network path ie.:

    # BEGIN WordPress
    RewriteBase /artists/

    and

    # BEGIN WordPress
    RewriteBase /

    This is with a completely bare .htaccess in the main root aside from the wordpress code.

    Any other thoughts, or do I have to face the fact that it just won’t work?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    It SHOULD work. That’s .. Augh, I hate when they don’t.

    Are you getting any errors in your logs?

    Thread Starter michellekoen

    (@michellekoen)

    No errors in the log file from yesterday when I played around with all of those changes..

    I’ve got plenty of space on my server, maybe I should just do a clean install in a new subdirectory for each site..

    Thanks for your help..

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Multisite Installation in a Subdirectory – Cant Access Any Sites’ is closed to new replies.