MU Subdirectory Redirects to Domains
-
I have installed wordpress multisite on my server like so:
I have set up “sub” sites on sub directories,like so:
https://www.primarysite.com/newsite1
https://www.primarysite.com/newsite2
https://www.primarysite.com/newsite3My 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) https://www.primarysite.com/newsite1 –> (target) https://www.newsite1.com
https://www.primarysite.com/newsite2 –> https://www.newsite2.com
https://www.primarysite.com/newsite3 –> https://www.newsite3.comI 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="https://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!
- The topic ‘MU Subdirectory Redirects to Domains’ is closed to new replies.