WordPress.org

Forums

broken permalinks with domain mapping (10 posts)

  1. tommcgee
    Member
    Posted 4 years ago #

    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?

  2. Are you mapping subdomain blogs to the original subfolders?

    that's the htaccess file for subfolder blogs.

  3. tommcgee
    Member
    Posted 4 years ago #

    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.

  4. 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.

  5. tommcgee
    Member
    Posted 4 years ago #

    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.

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

    Do these ones work fine?

  7. tommcgee
    Member
    Posted 4 years ago #

    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.

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

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

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

  10. tommcgee
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic