Support » Networking WordPress » MU Subdirectory Redirects to Domains

  • Resolved therealkbrackson


    I have installed wordpress multisite on my server like so:

    I have set up “sub” sites on sub directories,like so:

    My server is a shared dreamhost,my version is 3.4.2,and I am using the Domain Mapping plugin. I have enabled sunrise,and my network is working correctly on its own. My IP for all sites is the same.

    I would like to redirect or map my sub sites to their respective domains which are also hosted on dreamhost,like so:

    (primary) –> (target) –> –>

    I tried “fully hosting” both the primary domain and the target domain and then mapping the domain from the wordpress control panel. This did not work.

    I attempted to remove hosting from the target domain,place it as a mirror of my primary domain,but this is not successful either.

    I also attempted to change the “site” settings,replacing with the “real” domain name but this only furthered my issues.

    I then removed hosting from the target domain and just added an “A” record pointing to my IP for my host,however this does not work,either.This is what the source code looks like now that I have just placed the “a” record on the domain:

    <script type="text/javascript">
    var reg = 'sedonewreg';
    document.write( '<scr'+'ipt type="text/javascript" language="JavaScript"' + 'src="' + + '/' + reg + '/park.js">' + '<\/scr' + 'ipt>' );

    Also,I tried with no success to change my file directory in my target domain settings to the root folder of the primary domain,but I did not have success in that.

    Is there a way to do this with subdirectories on dreamhost? Bear in mind they will not let me do wildcard DNS settings,so I feel a bit at a loss. Any suggestions would help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes!

    I appologize for switching hats, but I wrote this today:

    You would do the same thing for your mapped domains. Point it where WP is installed, /home/yourname/, and it should work the same. Then you just use the domain mapping plugin per usual.

    Thank you so much.

    Also,I wanted to note a couple things,I kept the ftp user the same as the primary domain,and I used “fully host” along with making the directory exactly the same as my primary(no trailing slash on the end)

    All my domains on dreamhost add www,which is fine, when I went in to map the domains in wordpress I added BOTH the non www and the www version,and made the www version the primary,not sure why this worked but it did.

    Again thank you thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘MU Subdirectory Redirects to Domains’ is closed to new replies.