• 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]

    Ideas?

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.

    Thread Starter tommcgee

    (@tommcgee)

    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 (epirate.shu.edu) and the path is “/”. Site URL and Home are set to http://epirate.shu.edu.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Are your subsite URLs site1.yourdomain.com OR yourdomain.com/site1?

    The .htaccess code you provided is what you would want for yourdomain.com/site1 set ups.

    Thread Starter tommcgee

    (@tommcgee)

    that’s the thing: I’m setting up 40 or so different blogs. Most are yourdomain.edu/site1, yourdomain.edu/site2.

    But there are a few that we want to be subsite.yourdomain.edu, or anothersubsite.yourdomain.edu.

    Most are yourdomain.edu/site1, yourdomain.edu/site2.

    Do these ones work fine?

    Thread Starter tommcgee

    (@tommcgee)

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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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.

    Thread Starter tommcgee

    (@tommcgee)

    Yes, the WordPress MU Domain Mapping lets you do that. http://epirate.shu.edu and http://wp-web1-prod.shu.edu/theblueorange are both working off of the same install right now. But I can’t get the permalink structure of epirate.shu.edu 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.