Support » Networking WordPress » Subdirectory sites work with IP but not Domain Name

  • I’ve been banging my head against the wall on this one:

    http://erickson.edu is a multisite install running 3.1.4,
    SUBDOMAIN_INSTALL is false,
    DOMAIN_CURRENT_SITE is erickson.edu

    A couple of sites need custom domain names mapped. This works great with the Domain Mapping plugin.

    A couple of sites need to be subdirectory paths, e.g. erickson.edu/coach-training.

    I can get subdirectory paths to work when I map it with the server IP address.

    Any ideas?

Viewing 15 replies - 1 through 15 (of 44 total)
  • Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    Apache’s not reading the htaccess right?

    AllowOverride FileInfo Options

    (i think that’s it)

    Interesting. I was thinking that might be the problem, but permalinks are working on all the other sites.

    What’s with the “AllowOverride FileInfo Options”? Where would that go?

    Thanks for your help.

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    in your httpd.conf file. 🙂

    Thanks. Lucky for me, Media Temple makes it rather difficult to edit the httpd.conf file on a (dv) 4 server.

    What does this directive do, exactly? The tutorials I’ve read are rather confusing…

    oh yeah, does it matter on which line I add this?

    Just found it in there via ssc. Thanks for you help. I’ll report back as to whether it works!

    Thanks again.

    Here’s what I have in my httpd.conf:

    <Directory />
    Options FollowSymLinks
    AllowOverride All
    </Directory>

    I flushed my permalinks, but I’m still getting the same issue.

    Here’s my .htaccess:

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

    And my wp-config.php:

    //multi site
    define( 'SUNRISE', 'on' );
    
    define('WP_ALLOW_MULTISITE', true);
    
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'erickson.edu' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    The .htaccess looks fine to me.

    My guess would be your httpd.conf needs to be altered to read the .htaccess, still. AllowOverride All doesn’t actually mean ‘all’ on all servers.

    Can I use all some more?

    well, crap. Any other ideas?

    I’m still baffled as to why it would work with the IP address, but not the domain name (primary domain name for the server, too).

    -J

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    I’m kinda baffled you got it to work with the IP address as well.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    Change

    <Directory />
    Options FollowSymLinks
    AllowOverride All
    </Directory>

    to

    <Directory />
    Options FollowSymLinks
    AllowOverride All FileInfo Options
    </Directory>

    Thanks guys. I’ll try this now.

    I really appreciate your help with this. My client is kind of freaking out at the moment.

    No change… but I am getting a lot of redirect loops.

    I must have something setup wrong with the primary domain name. That’s the only thing I can think of as to why sites resolve to the IP address, but not the domain name.

    -J

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    You could remove it from DNS and re-add it?

Viewing 15 replies - 1 through 15 (of 44 total)
  • The topic ‘Subdirectory sites work with IP but not Domain Name’ is closed to new replies.