I'm building a WordPress website for a client and can't figure out what to do here. I'm using translatepress to make my website multilingual and the client wants to have another domain for different language. So the default domain is example.com but English version is example.com/en . Is it possible to add another domain which replaces example.com/en and is still functional by pressing all the links? So it's like example2.com points to example.com/en , but not as a url forwarding, but it replaces the whole example.com/en part completely. What are my options here? Thanks.
You can have different sites in a network on different domains. It is just on the other domain, not on both. Since WP stores internal links as absolute URLS, you need to create the sites on the correct domain from the start, or use wp-cli or similar to re-write existing links when you change.
I was about to recommend the plugin I have used, but see from https://wordpress.org/support/article/wordpress-multisite-domain-mapping/ that from 4.5 it's a WP native feature!
Note: i don't use translatepress but have different languages as different sites in a network. Since you talk about sub-domains I'm assuming you do something similar
Related
Alright, the primary domain is: gdengines.com. I also own .net & .org. I want it so if a user types in .net or .org it will display the primary domains contents. However, the LINKS will be for that URL (the easiest way to explain this is by using the following plugin as an example:
Multiple Domain (plugin page) - Multiple Domain allows you having more than one domain in a single WordPress installation. When there is more than one domain set in your host, all links and resources will point to the default domain. This is
the default WordPress behavior. With Multiple Domain installed and properly configured, it’ll update all link on the
fly. This way, the user navigation will be end-to-end under the same domain.
However, the plugin doesn't work with multisite installations.
I have WordPress MU Domain Mapping installed, but it's not helping for this issue.
Anyone know a fix other than setting up .net & .org to redirect?
You can use on the other domains .htaccess file with.
Redirect 301 / http://www.your-url.com
If you have to on each domain then redirect the vistor automatic to your main domain.
I have a site on WordPress with Polylang plugin for multi-language.
I want to set different language to different domains, for example:
http://english.com - for English
http://french.com - for french
It Will be nice to have one hosting account, but two domains. I think that I should pay attention to .htaccess and redirects.
What is your opinion? Thank you.
Polylang seems to support subdomains or domains per language.
You go to Dasboard > Languages > Settings and there, you have an option "The language is set from different domains".
Here is an excerpt from the documentation describing this option:
it is possible to use subdomains (or a different domain per language).
All your subdomains (or domains) must point to the same directory
(where the WordPress index.php is present). Polylang checks if your
domains or subdomains are correctly accessible. Otherwise, Polylang
returns an error message.
And here you can find a discussion in WordPress support forum about this topic.
I think you should go with the subfolder solution as well. Also to keep the "strength" of the website at one .com domain and not multiple domains (or subdomains).
But both ways should be possible with one hosting account. Its more a question of the best solution for you.
For the exact same site content displayed in different languages, I don't think it's a good practice to use different domains for each language. As an eg, http://www.cbsrwstaging.com uses different languages, the language can be changed from the right top 'information' menu. For each different language it simply changes its URL, eg http://www.cbsrwstaging.com/de shows the site in german , http://www.cbsrwstaging.com/ja/ show the contents in Japanese etc. This site makes use of the WPML plugin.
Is there a way to mock a domain name with another one parked on the same server?
I'm using WordPress with WPML plugin for multilanguage. WPML has an option to use different domain names for different languages, using parked domains. My problem is that I want to have more than one domain name for a specific language. Let's assume that domain.co.uk, domain.us and domain.com should all deliver EN, but WPML only allows me to set domain.com for EN.
Is there a way to trick the server to make it look like a different domain was requested? For example, when I'm accessing: www.domain.us/some-address/here I need it to serve the exact same content as www.domain.com/some-address/here would, without redirecting.
Thanks!
I am about to develop two websites using wordpress with its multisite functionality. So www.domain1.com and www.domain2.com should point to the same wordpress installation.
The problem I have is that the domains are in productive use, so I cannot make them point somewhere else until development is not finished. I also do not have (and do not want to buy) two unused domains to create the develop setup, so what I would like to know is:
Can I setup subdomains for development and change it into »real« domains later on?
What I would like to know is how to setup the project so that after development is finished, deploying is as painless as possible. The project setup should be close the »real world scenario« it is meant for as possible and I am interested in any kind of hints, advises, links and stuff which guides me setting up the projects.
Which are the pitfalls, where are the »dangerous« parts?
Greetings...
I'd suggest the following route:
Install the Multisite with a sub-domain set-up in a third domain that will be the Main Blog (example.com). In your host, you'll need Wildcard subdomains enabled. Otherwise, each sub-domain has to be manually created. With the wildcard, creating a new site is a matter of clicking Add site.
Then, in /wp-admin/network/sites.php, add two sites: domain1.example.com and domain2.example.com. And develop until they are ready.
You'll need the plugin WordPress MU Domain Mapping to map Top Level Domains to the sub-sites/sub-domains. With it, domain1.example.com will be a fully working domain1.com.
After all this is in place, is just a matter of changing the NameServers to point to the Multisite addresses.
Well, it seems simple but Multisite is not for the faint of the heart. But, one of WordPress.org wizards, Mika Epstein, aka Ipstenu, has two great eBooks that cover lots of ground. Please, check the following Answers in WordPress StackExchange where I cite them.
An interesting case study document.
Plugins of interest:
BackupBuddy: paid solution, although it's considered Beta, exporting and importing sites out and in the networks works ok.
Add Clone Sites for WPMU (batch), in the Repository, although hasn't been updated in a while, still works fine, doesn't exports/imports, but useful for duplicating sites inside the network.
We have the Wordpress MU Domain Mapping plugin installed and have followed instructions to the best of our ability but we can't seem to get this working at all and I've tried everywhere to get advice but no-one seems to know anything about it...
Here's the scenario.
We have Wordpress MU installed at (eg) abc.com so each new Wordpress site we create is then at (eg) site1.abc.com, site2.abc.com, site3.abc.com etc. These are all virtual sub directories and Wordpress MU does not generate any physical sub directories for site1, site2 and site3.
What we wish to do, is purchase new domain names and map them to each one of these sub Wordpress sites. (eg) mynewsite1domain.com will be mapped to site1.abc.com so instead of the site appearing as the following in the visitors browser address bar...
site1.abc.com
site1.abc.com/about
site1.abc.com/contact
...the URL's would appear as...
mynewsite1domain.com
mynewsite1domain.com/about
mynewsite1domain.com/contact
This particular setup is on a VPS running Plesk CPanel, I have complete access to everything including SSH if anyone can advise how on earth this setup is meant to be correctly configured to function as explained above.
I'm guessing something needs to be done with DNS records, at the domain registrar for mynewsite1domain.com, we have the name servers pointing to the VPS IP that the Wordpress MU setup resides on.
Any help would be greatly appreciated.
Thanks in advance.
Are you using WordPress Multisite 3.3.X or an older implementation of WordPress MU (or the MU plugin from a third party)? Likewise, to accomplish domain mapping, are you using the official domain mapping plugin from Automattic or another third party implementation? It sounds like you are using subdirectory vs subdomain multisite. That is not how domain mapping is typically used (the Automattic version at least).
You shouldn't have to point the new domain names to the server's DNS (unless you want it to be the authority), you'll just need to assure that the new domain names resolve to the same IP address of the main web server (an A record should suffice). The domain mapping plugin is pretty straight forward on how to map what domain name to what subdomain and whether you wish to have it redirect or use the new domain name in the address bar. The later would give you what you seek with mysite1domain.com/subfolder, etc.