fayenet
Member
Posted 2 years ago #
Hi all,
I've WP3 with Multi-site:
1. Entry point(Portal) http://www.domainA.com/
2. SiteA: http://www.domainA.com/siteA,
3. SiteB: http://www.domainA/siteB.
Is it possible to point http://www.domainB.com to /siteB?
Or is it possible to mirror two domains to the whole installation, so both http://www.domainA.com/siteB and http://www.domainB.com/siteB would work??
Currently I'm forwarding domainB.com to domainA.com, and it lost all its index pages in google.
hope I can find an answer here. Thanks for the help!!
L
fayenet
Member
Posted 2 years ago #
thanks Andrea, I tried everything I can, the domain mapping works without URL written. i.e. d domainB.com works on a siteB homepag, as well as domainB.com/?p=123
But once I turn on the permalink, it will show a 404.
Is there any way I can set both domainA.com and domainB.com pointing to the one installation? so both domainA.com/siteB & domainB.com/siteB will work?
fayenet
Member
Posted 2 years ago #
@fayenet, are you trying to point two domains to the same site or are you trying to map two different domains to two different blogs?
snaxmuppet
Member
Posted 2 years ago #
AFAIK you can only domain map your blogs if you are using subdomains for the sites instead of directories.
However, it should be possible using mod-rewrite and a .htaccess file to rewrite http://www.domainB.com to http://www.domainA.com/siteB.
Doing it that way http://www.domainA.com/siteB will remain and continue to work.
A small side effect of using mod-rewrite is that this really only applies to the initial entry to the site because after that they would have to use the http://www.domainA.com/siteB format as that is the actual site url.
@snaxmuppet, there are plugins that allow you to map domains to subdirectory installs, but I don't think this plugin will allow you to map domains to subdirectory installs.
snaxmuppet
Member
Posted 2 years ago #
I don't think this plugin will allow you to map domains to subdirectory installs.
Sorry josh... which plugin are you talking about? I was talking about using mod-rewrite of apache... not a plugin. I am confused!
The plugin that was suggested above.
snaxmuppet
Member
Posted 2 years ago #
Ah right... the MU Domain Mapping Plugin.
Thx
Sorry guys - the domain mapping plugin DOES work with subfolder installs. It used to not.
Also, it doesn't work if the install is in a folder and has it as part of the address.
But that is not the OP's problem.
mod_rewrite needs to be enabled and working on the server, and reading the htaccess file. I went over this in the forum sticky.