WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] MU Subdirectory Redirects to Domains (3 posts)

  1. therealkbrackson
    Member
    Posted 1 year ago #

    I have installed wordpress multisite on my server like so:

    http://www.primarysite.com

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

    http://www.primarysite.com/newsite1
    http://www.primarysite.com/newsite2
    http://www.primarysite.com/newsite3

    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) http://www.primarysite.com/newsite1 --> (target) http://www.newsite1.com
    http://www.primarysite.com/newsite2 --> http://www.newsite2.com
    http://www.primarysite.com/newsite3 --> http://www.newsite3.com

    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="http://sedoparking.com/' + window.location.host + '/' + reg + '/park.js">' + '<\/scr' + 'ipt>' );
    </script>

    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!

  2. Yes!

    I appologize for switching hats, but I wrote this today: http://elftest.net/multisite-subdomains-wildcards/

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

  3. therealkbrackson
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic