Support » Networking WordPress » broken permalinks with domain mapping

  • Using the domain mapping plugin, the home pages of my blogs work fine. But on subdomain-mapped blogs (as opposed to directory-based blogs) all the links are broken. They appear correctly when you hover over them, but all re-route to the generic “not found” page of the base blog.

    Using the default permalinks on the subdomain blog works — but any of the “pretty” choices don’t.

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


Viewing 9 replies - 1 through 9 (of 9 total)
  • Are you mapping subdomain blogs to the original subfolders?

    that’s the htaccess file for subfolder blogs.

    Not sure what you mean. In my httpd.conf file I’m mapping them to the server root (same as the root blog). My configuration on the Domain Mapping screen points to the box’s IP address.

    In the SuperAdmin::Sites::Edit screen, the domain is the new one ( and the path is “/”. Site URL and Home are set to

    Are your subsite URLs OR

    The .htaccess code you provided is what you would want for set ups.

    that’s the thing: I’m setting up 40 or so different blogs. Most are,

    But there are a few that we want to be, or

    Most are,

    Do these ones work fine?

    Yes, they do. The “pretty” permalinks are all completely functional. I can’t get them to work on the version though, only the default ones.

    Wait, you have BOTH subdomains AND subfolders in the same install?

    I don’t think WordPress is smart enough to handle that.

    He’s got a subfolder install and is mapping the subdomains.

    Yes, the WordPress MU Domain Mapping lets you do that. and are both working off of the same install right now. But I can’t get the permalink structure of to be anything other than /?p=xxx and I’d like it to be /2010/08/my_post.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘broken permalinks with domain mapping’ is closed to new replies.