• I am trying to edit the theme for one of the domains I’m working on under multi-site. It’s set up for subfolders and domain mapping is enabled.

    I don’t want to continually change the theme, but I want to be able to look at my changes. So I tried to create an extra private blog that I could use for testing. However, no matter how I play with the settings, I keep getting a 403 error. Is it possible, when using domain mapping with multisite, to have a subfolder blog in this way? Or should I be using some other method for playing with the theme?

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

    (@ipstenu)

    ?????? Advisor and Activist

    Is it possible, when using domain mapping with multisite, to have a subfolder blog in this way?

    Yes. You can totally have both subfolders and mapped domains.

    This reminds me of an annoying mod_security issue… but before we do that, can you add this to the very top of your .htaccess

    Options +FollowSymLinks
    Thread Starter sjbenson

    (@sjbenson)

    Done. I assume you meant before rewritengine on and the loading of all the modules?

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>

    LOL, or not. Will retry UNDER that section.

    Edit: Okay, keyed that line in under the aforementioned section.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Either way should work. Did it help?

    Mod_security ignores the .htaccess calls in the newer versions :/

    Thread Starter sjbenson

    (@sjbenson)

    I put it above the section I linked and the whole site went down.

    I put it after and no change.

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    
    Options +FollowSymLinks
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^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]
    </IfModule>

    This is the current .htaccess file. This is slightly different than what it was when I first tried it because I was trying to use a suggestion for fixing another problem I’m having with media files showing up in one of the two blogs that are working. But nothing changed either way.

    Thread Starter sjbenson

    (@sjbenson)

    BTW, I read your multisite ebook and noticed the thing about the database and numbers in the name being bad. When I installed WP it auto generated a DB that has numbers in the name. I’m wondering if that’s my problem?

    Edit: And if that may be the case, all I need to is change the name of the database and put the new name in wp_config.php, correct?

    I noticed that twenty eleven is having problems with the style sheet–that’s what made me wonder if maybe the database was the issue. Permalinks seem to be working fine. The only trouble I’m having is the folder site with no domain to map won’t work and the media won’t appear on the second site, even though I can locate it on the ftp. Could those both be due to the DB?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    When I installed WP it auto generated a DB that has numbers in the name.

    Depends on where the number is (hope you found the book helpful!)

    What’s your DB ‘prefix’ (this is in your wp-config.php file)

    Without seeing your site, though, it’s kind of a crap shoot from my end ?? Can you share a link? Sometimes just seeing the error helps.

    Like if you get unstyled sites, then it’s a case of allowoverride not being set correctly.

    Thread Starter sjbenson

    (@sjbenson)

    azlanerealty.net/test but its just a wp 403 page.

    define('DB_NAME', 'azl1210307455733');

    that’s the line in wp-config. And wp_config has salts set.

    I disabled all the themes and plugins. I’m still working through your book. But I was considering doing a reinstallation since I’ve pretty much nothing to loose at this point. but I will restore twenty eleven and styles so you can see what I’m talking about. Probably will do that later today since I don’t have time at the moment. But I thought I’d show you the db name anyhow.

    Though looking through it again, I think the prefix is wp_ so that probably isn’t the issue.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You should be okay with that ?? It’s $table_prefix = 'wp_'; that you have to look out for.

    When you install, make sure everything works before you do any domain mapping or plugins.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Is domain mapping interfering with subfolder blog?’ is closed to new replies.